How to send out resume as an attachment?
mdavid2574 - March 16, 2009 - 08:32
| Project: | Job Search |
| Version: | 5.x-2.0 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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.

#1
#2
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.