Re: mail() with attachments

From: Date: Mon, 08 Apr 2002 23:33:40 +0000
Subject: Re: mail() with attachments
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-12975@lists.php.net to get a copy of this message
Hmm? The article explains exactly how to do it. You can make a multipart MIME e-mail where the first part is the message, and the 2nd part is the file attachment (and more parts for additional files). The file data is encoded using base64 encoding in this example. You just need to create the message body as it shows in the tutorial and then use PHP's mail() function to send it. -Mike At 08:45 AM 4/8/02 +0100, George Pitcher wrote:
Darvin Andrioli suggested, on 20020328: http://www.zend.com/zend/spotlight/sendmimeemailpart1.php Sorry, I was none the wiser after reading this article, as to how to get php to send an attachment with an email message. The attachment in this case is being generated from db output and saved as a 'csv' file. George


« previous php.windows (#12975) next »