Re: How to create multipart e-mail bodies?
| From: | Zoltán Németh | Date: | Fri, 07 Dec 2007 11:13:53 +0000 |
| Subject: | Re: How to create multipart e-mail bodies? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-265554@lists.php.net to get a copy of this message | ||
2007. 12. 7, péntek keltezéssel 12.00-kor Sándor Tamás (HostWare Kft.)
ezt írta:
> Hi,
>
> I don't know if it is a PHP question, but I give it a try.
>
> I've been trying this subject for a while, but with less success.
> Now I can create mail bodies like this:
>
> Content-Type: multipart/alternative;
> boundary="-=Part233475926a47beb07.46978329"
>
>
> ---=Part233475926a47beb07.46978329
> Content-Type:text/plain; charset=utf-8
> Content-Transfer-Encoding: 8bit
> Content-Disposition: inline
>
> Hi there!
>
> ---=Part233475926a47beb07.46978329
> Content-Type:text/html; charset=utf-8
> Content-Transfer-Encoding: 8bit
> Content-Disposition: inline
>
> <H1>Hi there!</H1>
> <P>This will be fun!</P>
>
>
> ---=Part233475926a47beb07.46978329--
>
>
> But my mail client can't show any part of it. When I take a look at the
> source code, I can see that it recognise the boundaries, but somehow for
> some reason it doesn't show it.
>
> Any idea?
I suggest checking out phpmailer. http://phpmailer.codeworxtech.com/
If you don't want to use it, you can view its source and see how it does
the job and code your own mailer based on that.
greets
Zoltán Németh
>
> Thanks,
> SanTa
>