View Single Post

  #2 (permalink)  
Old 11-15-2004
Manuel Lemos
 
Posts: n/a
Default Re: Sending multipart html emails with PHP script

Hello,

On 11/15/2004 01:51 PM, Damien wrote:
> Hi to all,
> After hours of attempts and "googling", I'm still pulling my hair off my
> head when I try to send multipart html emails.
>
> It "works" on PCs with Outlook when I juste send a single "related"
> mail: one part for the HTML body, and several for the images. However,
> the images do not show on a Mac.
>
> I also wanted to have an "alternate", plain text message. I've tried the
> method described by Zend and PHPBuilder, but no luck...
>
> I've included a sample of what the email looks like in the end.
>
> Questions: what is the best way to organize the multiparts? Where does
> the header stop and the message start ?


I suspect that the part separators are wrong.

Anyway, if I were you I would not re-invent the wheel and use existent
classes for composing and sending HTML messages with embededed images
and alternate part texts like this one:

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
Reply With Quote