Re: mail with attachment
| From: | Manuel Lemos | Date: | Wed, 08 Dec 2004 13:20:31 +0000 |
| Subject: | Re: mail with attachment | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-203730@lists.php.net to get a copy of this message | ||
Hello,
Dre wrote:
I'm trying to send a mail with attachment, using mail() fucntion .. the mail is sent with the attached file, but when I open my mail box to check the mail I sent using my script, I find the normal text contents and the attachment displayed as text too !!! ex. if I attached a document, it will not be just attached when I open the mail, it will be displayed as text. I'm using multipart MIMEYou are probably doing something wrong but without seeing the source of your code, it is hard to tell what is the problem. Anyway, you may want to try this class that is capable of composing and sending messages with as many attachments as you want and works 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