I have the file upload module using which people can upload their resumes.

I want the job search module to send out the resume as an attachment when it emails.

I modified the jobsearch module and added the following to function theme_job_mail:

$body .= t('Content-Transfer-Encoding: base64'."\n");
$body .= t("\n\n*****Attached Resume*****\n\n Content-Disposition: attachment @File", array('@File' => $resume_node->field_upload_resume[0][value]));

However no attachment is sent.

Are these lines correct? Is this how an attachment is sent? Kindly guide me please.

Thanks for all the help so far. God bless you all.

Michael.

Comments

mdavid2574’s picture

Assigned: mdavid2574 » Unassigned
xamount’s picture

This is not as easy as it sounds. I have sought help to get this to work on one of my sites. It involves editing the function job_send_email (..) to re-route the email using a special newly created function (and not drupal_mail) to send the file upload as an attachment. The code is customized to work on my site. Please use my drupal contact page to seek offline discussion with me to get this into the jobsearch module.

xamount’s picture

Version: 5.x-2.0 » 7.x-1.x-dev
Issue summary: View changes

Moving this to D7 branch as this is a very nice to have feature.

xamount’s picture

Category: Support request » Feature request