Hi,
I've been working with the job module for awhile and have managed to put a simple implementation together. My question is about the automatic email. When an applicant applies for a job I would like an email to be sent to the applicant and the job creator (which happens automatically) and another email address that has been added in a job post cck field.
What is the best way to have the extra email sent?
Thanks
Comments
Comment #1
luke76 commentedWould also like to know if this is possible. In my project the administrator will be adding the jobs on behalf of the employers. So they would like to receive the email application (as happens automatically) but it should also go to a specified (CCK field) email address for each job, ideally. This saves them the trouble of forwarding them on.
EDIT: think I have cracked this with the following code. Sends to both the user who posted the job (in my case, always the site admin), and also an email address specified in a CCK Email field.
Comment #2
Pentacor commentedThis is a slight variation on luke76's code, this will send an email to the admin & the user who applied without using any extra fields (i.e. just using the user's account email address).
I have also modified the email text to read better if either role gets the email, if anyone knows a good way to do separate emails for them please let me know!
Comment #3
goldoak jp commentedCould this code work for drupal 5?
Comment #4
xamountYes it can work for drupal 5 but 5 is not supported anymore. Closing this issue as a solution has been provided.