Code: Select all
Content-Type: multipart/alternative; boundary="7218EB54-61F0-11D7-9A07-00D0F50001A9"
This is a multipart message in MIME format
--7218EB54-61F0-11D7-9A07-00D0F50001A9
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
The message is in the html section
--7218EB54-61F0-11D7-9A07-00D0F50001A9
Content-Type: text/html
Content-Transfer-Encoding: Quoted-Printable
dkklein wrote: How does the headers look like?
Not related to phpBB I am currently working on a Delphi program that sends HTML mails and one thing I found was that the mail must contain both a text and html section.
Headers should look something like this:
Code: Select all
Content-Type: multipart/alternative; boundary="7218EB54-61F0-11D7-9A07-00D0F50001A9" This is a multipart message in MIME format --7218EB54-61F0-11D7-9A07-00D0F50001A9 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable The message is in the html section --7218EB54-61F0-11D7-9A07-00D0F50001A9 Content-Type: text/html Content-Transfer-Encoding: Quoted-Printable
dkklein wrote: You don't need to add those numbers that is done automatically.
You just have to specify that the mail is multipart and add the text section and the html section. I don't have 100% information - I have not read the RFC's - I just the what I needed to do to format the mail properly.
Dean wrote: I use a header -
"Content-Type: text/html"
Code: Select all
<?
mail("[email protected]", "My Subject", "This is <b>HTML</b>", "Content-Type: text/html\r\n");
?>