Hello,
On 11/15/2004 12:28 PM, Angelo Zanetti wrote: > I have a script that is supposed to use the mail function to send an > email with an attachment, however, when run the script I dont get any > errors but in the body of the email there is a lot of mixed up text, > which i presume is meant to be the attachment.
That is because you are setting it to be of text/plain.
Anyway, although you can, you should not be sending messages with attachments this way as modern spam filters will discard your messages.
You may want to try this class to compose and send messages with attachments properly:
http://www.phpclasses.org/mimemessage
--
Regards, Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php