I want to show images in the body of the mail in php mail script
$formcontent=" Name: $name
Picture: (I want to show the pic here)";
$recipient = "myemail@domain.com";
$subject = "Contact us";
$mailheader = "From: $email
";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
?>
I tried the following codes but it doesn't work, it shows the words as it is
$formcontent="<img src='http://anydomain.com/pic.jpg'>";
$formcontent="<html><body><img src='http://images2.alphacoders.com/444/444259.jpg'></body></html>";
tried the following codes .
$formcontent= "<img src=//anydomain.com/pic.jpg'>";
$formcontent= "<html><body><img src='//images2.alphacoders.com/444/444259.jpg'>
</body></html>";