PHP Mail + Images?

Hey, I can’t get images to send when entered in the retrieved ‘htmlmsg’ field when I use IMG or EMBED tags. I know it’s possible, but I have no idea what to do. Here’s my code as of now:


$to = $_POST['to'];
$subject = $_POST['subject'];
$from = $_POST['from'];
$message = $_POST['htmlmsg'];

$headers  = 'MIME-Version: 1.0' . "rn";
$headers .= 'Content-type: text/css; charset=iso-8859-1' . "rn";

$headers .= 'From: ' . $from . "n";

$sent = 
mail($to, $subject, $message, $headers) ;


{print '<html><BR><BR><BR><BR><center>Your HTML message was sent successfully.</center></html>'; }


{print "An error occurred and your message was not sent."; }


So, any help is appreciated, as this is for a client. Thanks much.

try changing

Content-Type: text/css; charset=iso-8859-1


Content-Type: text/html; charset=iso-8859-1

Sponsor our Newsletter | Privacy Policy | Terms of Service