Re: Attachments with Mail()
| From: | Evan Nemerson | Date: | Thu, 23 Oct 2003 14:01:49 +0000 |
| Subject: | Re: Attachments with Mail() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167274@lists.php.net to get a copy of this message | ||
PEAR has a class which may be helpful.
http://pear.php.net/package/Mail_Mime
On Thursday 23 October 2003 04:13 am, Don Mc Nair wrote:
> 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
--
Evan Nemerson
evan@coeus-group.com
--
"A leader is the wave pushed ahead by the ship."
-Leo Nikolaevich Tolstoy