Hi there and sorry to trouble you with my first question 🙂
I am a little out of my depth here but this is what I would like to do.
On my apply form I want to have the option to let the user attach a resume by using the form field - input type="file"
Now I understand this can be done with Mail/mime.php but to be totally honest with you I do not know how to do this and how to apply it to my code that I list below. Is there anyone who could possibly give me a working example based on my mailing code below? I know its a lot to ask but I really have dug myself into a hole with this.
The complete code is also attached.
By the way there is no database involved I only want the mail and attachment to come via email.
if ($posted && !$err)
{
// Success - send mail or whatever
$msg = "Email sent from IT Recruitment\n";
$msg .= "Position Sought:\t$title\n";
$msg .= "ERS Reference:\t$ref\n";
$msg .= "Senders Name:\t$fname\n";
$msg .= "Address 1:\t$faddress1\n";
$msg .= "Address 2:\t$faddress2\n";
$msg .= "City:\t$fcity\n";
$msg .= "County:\t$fcounty\n";
$msg .= "Postcode:\t$fpostcode\n";
$msg .= "Home Telephone:\t$fhometel\n";
$msg .= "Mobile Phone:\t$fmobile\n";
$msg .= "Email Address:\t$fmail\n";
$msg .= "Date Of Birth:\t$fdob\n";
$msg .= "Age:\t$fage\n";
$msg .= "Nationality:\t$fnationality\n";
$msg .= "Minimum Salary Sought:\t$fminsal\n";
$msg .= "Children:\t$fchildren\n";
$msg .= "In Good Health:\t$fhealth\n";
$msg .= "Are You A Smoker:\t$fsmoke\n";
$msg .= "Do You Have Use Of A Car:\t$fcar\n";
$msg .= "Notice Needed:\t$fnotice\n";
$msg .= "Additional Information:\t$fmsg\n";
$to = "name@domain.com";
$subject = "Online Application";
$mailheaders = "From: My Web Site <> \n";
$mailheaders .= "Reply-To: $fmail\n\n";
mail ($to, $subject, $msg, $mailheaders);
Thanks so much.