On 10/17/2003 08:13 PM, Scott Fletcher wrote:
I already whipped up the script to get the PHP mail() to send an email with body text, along with the file attachment. Still haven't got this to work right. If I omit out the attachment feature then the mail() work successfully and I receive an email with body message successfully. But with attachment, I'm able to get the mail to be send successfully but I receive email without body text and without attachment. I have been looking around on the Internet for guidance and tweak my php script, but so far no luck. So, can anyone look into it and correct it for me?
That looks like one of those mail() function bugs.
You may want to try this class that has workarounds for such bugs and provides an easy way to compose and send messages with attachments.
http://www.phpclasses.org/mimemessage
--
Regards, Manuel Lemos
Free ready to use OOP components written in PHP http://www.phpclasses.org/
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php