Attachments with Mail()
| From: | Don Mc Nair | Date: | Thu, 23 Oct 2003 11:13:02 +0000 |
| Subject: | Attachments with Mail() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-167265@lists.php.net to get a copy of this message | ||
Hi
Can anyone tell me how to add a file as an attachment to an email sent with
something like the following ?
$headers = "From: <".$fromaddress.">\r\n";
$headers .= "Reply-To: <$fromaddress>\r\n";
mail($toaddress, $subject, $mailcontent, $headers);
Thanks
Don
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.529 / Virus Database: 324 - Release Date: 16/10/2003