Here is a PHP Mail Multipart/Alternative (Plain Text and HTML) code for *nix servers (Unix Like Servers)… if you are hosted on a windows server, simply replace all “\n” or “\n\n” in the below code to “\r\n” or “\r\n\r\n” respectively.
This code is for anyone who has already written an HTML page for their PHP mail… there are several PHP > HTML free translators on the internet. You may use one of them to translate your HTML code to PHP to insert into the following code. All there needs to change is to place a backslash before any quotations (EX: … confirm that \”Our Company\” has …), and to end each line with a newline character (EX: \n )…
This code method has been successfully tested with Apple Mail, Microsoft Outlook, G-Mail, and Yahoo Mail. I hope this helps out anyone that is writing a multipart/alternative PHP mailer script.
Leia mais »
Popularidade: 15%