I am using the following code to send a confirmation e-mail after a user has submitted a form:
$toaddress = "my@email";
$subject = "E-mail Subject";
$mailcontent = "Date: ".$Date."\n"
."Customer Number: ".$CustNo."\n"
."Customer E-mail: ".$Email."\n";
$headers = "From: [email]support@mycompany[/email]\n"
."Cc: $Email";
mail($toaddress, $subject, $mailcontent, $headers);
How do I add an attachment to this e-mail in PHP, and where does the attachment file need to be at the time the message is sent? Same directory as this page?
Thanks!
Timm