Anyone can guide me on this script ? i have this script made but when i send out the mail it wont show the pictures can i know where went wrong ? <?php //add From: header $headers = "From: eugene@baddot.com\r\n"; //specify MIME version 1.0 $headers .= "MIME-Version: 1.0\r\n"; //unique boundary $boundary = uniqid("HTMLDEMO"); //tell e-mail client this e-mail contains//alternate versions $headers .= "Content-Type: multipart/mixed; boundary = $boundary\r\n\r\n"; //plain text version of message $body = "--$boundary\r\n" . "Content-Type: text/plain; charset=ISO-8859-1\r\n" . "Content-Transfer-Encoding: base64\r\n\r\n"; $body .= chunk_split(base64_encode("This is the plain text version!")); //HTML version of message $body .= "--$boundary\r\n" . "Content-Type: text/html; charset=ISO-8859-1\r\n" . "Content-Transfer-Encoding: base64\r\n\r\n"; $body .= chunk_split(base64_encode("This the <b>HTML</b> version! <img src=\"http://www.baddot.com/images/d2bd75.jpg\" border=\"0\" hspace=0 align=baseline>")); //send message mail("eugene@rach.com.sg", "An HTML Message", $body, $headers); ?> PHP:
i tried the php mailer but i have the same problem too when i recieve the mail on testing...and if im blocking the picture why i can see pictures where people send me vaigra pictures in it hmmm strange