Hello,
Here is my code
Code:
<?php $de ="ex@test.com";
$ bdnry=md5(uniqid(mt_rand()));
$ hdr="From:.To $;
$ hdr.="MIME-Version: 1.0N";
$ hdr.='Content-Type: multipart / mixed; bdnry = "'.$ bdnry.'Rnn';
/ / Load variables each containing text:
$ txt="Message in Plain Text";
$ Texte_html=<b>'Hey!</b> <br> ';
$ Texte_html.=' <img src=http://address/image1.jpg> ';
/ / Building the body of message to send
$ Headers='-'.$ bdnry.'N';
/ / Part Plain Text
$ Headers.='Content-type: text / plain; charset = "iso-8859-1" n';
$ Headers.='Content-Transfer-Encoding: 8bit'.'Rnn';
$ Headers=$ txt;
/ / Separate Text Html Plain Text
$ Headers.='-'.$ bdnry.'N';
/ / Part html text
$ Headers.='Content-Type: text / html charset = "iso-8859-1" n';
$ Headers.='Content-Transfer-Encoding: 8bit'."Rnn ';
$ Headers.=$ Texte_html.'Nn';
/ And finish the complete message
$ Headers.='-'.$ bdnry.'- N';
$ Resmail=Mail($ A, $ Topic, $ Headers, $ hdr)?>
Bookmarks