Hello.

I am still quite new to Drupal and trying to build a job board site using cck + views. I have created 2 related content types: a "job post" and a "job application" - both are related using nodereference.

The job application node has 4 fields: id of the job post to which the person is applying, email of the applicant, cover letter (body field) and attached cv (cck field that allows users to attach/upload a document).

Question: Once a job application is created I would like the content of the node (including the attached file) to be automatically sent via email to the person who posted the job (destination email address is in a cck field in the related "job post" node). Is there any module that can help me achieve this?

Thank you so much for your support.

My email address is: wedge.paul@gmail.com

Comments

shady_gun’s picture

paulwedge’s picture

Thank you for your reply. However, after exploring the rules module, I still can't understand how this can be done. As far as I understand, rules would allow me to send a notification that a "job application" node has been submitted to a "fixed" email address. However, I need to send the entire content of the "job application" node (including the file atachment) to a "variable" email address that is unique for each node (and that must be retrieved from the related "job post" node).

I have also looked at the simplenews module as a way to send node content. However, again I cannot find a way to automatically customize the email address and to send the file attachment.

Any suggestion would really be appreciated.

Thank you so much.

shady_gun’s picture

Install token module and on the rules send arbitrary mail address or something you can replace the recipient with the cck email, Author mail etc etc ...

you will also be able to send any cck field , attachment url etc etc ..

Regards,

zaurav’s picture

I couldn't get it to send me attachment. I can send about everything in the mail (filename, filesize, etc) except the attachment.

what do you mean by 'attachment url'? is that just a link to whatever is uploaded via file field cck?

thank you.

paulwedge’s picture

In the HTML message box try pasting the all the different CCK file tokens (under "Replacement patterns for created content". You will find that one of these will enable the person who receives the email to download the attached file. (You need to use the cck filefield module to upload your attachments). Good luck!

dgitonga’s picture

I have the same prob. got a job and job application content type. job content type contains a user reference cck field with contact name (person responsible for hiring the position), this contact is not necessarily going to be job content type author and as such this makes working with the variable a little bit trickier. I cannot find a way to pass this cck field (job contact from job content type) onto the job application page. I have tried node reference, user reference, tokens/triggers/actions and finally tried the rules module, which came close to it by providing the extra data tokens but still cannot email the job contact from the job application page as the variable is not present on this page to begin with...! Which brings me back to sq1, How do you get a cck user referenced field to be passed along to another content type?
I'm currently using a node reference url widget to create the 'apply for this job' link in the job page (but widget is configured in the job application page), creates a nice user experience in that when they click on the 'apply' link on the job page, they are redirected to application page and a position field is pre-populated with a non-editable job title. I have looked at the code in the node reference url widget to see if i could make it return the user name from a node view I created, by parsing the nid as an argument to the view (not possible to use tokens in cck view reference but used fallback behavior to get nid from url), but the view keeps returning the (job) node title, and thanks to my drupal noob-ish status just found out that views will only return info pertinent to view type (node/user) regardless of what info you can pull up on the preview in the view edit screen. If anyone can figure this out, kindly, please share. I know how to construct the sql statement that will give me the desired result on the job application page, and I'm comfortable with php, but i got next to 0 skill doing dev work on drupal, so I'm keeping off that route till i at least learn a little more development.
Otherwise, in the mean time (while im getting up to speed with drupal development) im trying to mess with content profiles module since it allowed me to make a relationship in my user view to the content profile and this opened up the nid argument to the user view...if i succeed in making this job/job application 'architecture' work i'll post more here.

waltersk9’s picture

get this...

http://drupal.org/project/fieldactions

it allows you to do your rules with a little more sizzle...

Like Email a referenced user.