I am trying to send an email with a screenshot as the body of an email. Normal text mail is being sent without any problem. screenshot.png
is the image which I want to send.
<?php
$to=$cust_email;
$cartTotal=$_SESSION["cartTotal"];
$message = '<img src="screenshot.png">';
mail($to,'Bill',$message,'FROM:xyz@gmail.com');
?>
I've also tried:
<?php
$to=$cust_email;
$cartTotal=$_SESSION["cartTotal"];
$message = '<img src="screenshot.png">';
mail($to,'Bill','echo \'<img src="screenshot.png"/>\';','FROM:xyz@gmail.com');
?>