PDA

View Full Version : Mime vs. Html email ?


Jawelin
08-20-2002, 01:30 PM
Hi.
I always used a simple method to send mails in simple HTML format. Infact it was enough adding the following code at the beginning of the header:
$headers = "MIME-Version: 1.0\r\n";
$headers.= "Content-type: text/html; charset=iso-8859-1\r\n";


Well. A month ago, my host server provider changed the SMTP server or whatever else: now is said it supports the full MIME format.
As the result, all emails that always worked fine, now arrive just like simple text, of course fullfilled of un-decoded HTML tags stuff.

I even checked the hack HERE (https://vborg.vbsupport.ru/showthread.php?s=&threadid=33784&highlight=mime+html+email) but didn't found anything as simple as before to send these html formatted emails.

Sould anyone put me on the right way ?

Thank you very much.
Bye

Jawelin
08-23-2002, 08:22 AM
Nobody's there ?

Admin
08-27-2002, 07:17 PM
Pretty much what you need:
http://www.webmasterbase.com/article/679

Jawelin
08-28-2002, 06:20 AM
Thanks a lot, FireFly.
I read that article but I fear the problem isn't the php.ini setup.
I'm on a Linux (shared) server and the ini settings are always the same.
Only, my provider changed the SMTP server.
I still use the sendmail -t instruction but the problem - I guess - is in the header of the single email itself.

As said before, my problem is: sending via mail() function extactly the same built as before, now I receive a badly-formatted text-only email with all the html stuff.
Is there any other mime type I could put into the header ?

Thanks for the answer.
If you're away this forum is one-way ... :(
;)

Admin
08-28-2002, 08:11 AM
You can also open a socket directly to the SMTP server and send the email through there.
http://www.phpguru.org/downloads/smtp/