i have two content types

  1) job posting

  2)job Application 

content type "job Application " has node reference field for "job posting". so whenever one user create a "job posting" means, another user can send a "job application" to that job by filling the fields.

can i know how i can sent a notification to the user who had posted job ,when "job application" has been created for his/her job by rules ?

thank in advance

link|improve this question

6% accept rate
feedback

migrated from stackoverflow.com Jun 11 '11 at 0:17

This question came from our site for professional and enthusiast programmers.

1 Answer

Sure, with the Rules module create a new rule with this configuration:

  1. At admin/rules/trigger/add choose a name for your rule

  2. In the Event dropdown choose After saving new content and click 'Save changes'

  3. Add a condition of: Content has type under the Node heading in the conditions dropdown

  4. Add an action of: Load a referenced node under the CCK dropdown heading and choose the node reference field you want to use (the one in the job app content type) and click 'Save'

  5. Add another action: Load a user account under the User dropdown heading. In the User id field, add <?php print $referenced_node->uid; ?> and click 'Save'

  6. Add a third action: Send a mail to a user under the System dropdown heading, changed the Recipient dropdown to Loaded user and configure the Sender, Subject, and Body of the email and click save.

Now when a user creates a job application an email will be sent to the user who created the referenced job posting (assuming there is a value in the node reference field, it should be required).

link|improve this answer
thank u very much – dhakshina moorthy Apr 15 '11 at 6:52
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.