I have a mail template which contains a description and one large image . But while adding image to mail template body it wont display when the mail open . It shown as below :
I have tried this code :
$message = "<html><head></head><body>";
$message .= "<img src='link-image.jpg' alt='' /></body></html>";
$headers = "From: $from_email";
$headers .= "Content-type: text/html";
mail($to, $subject, $message, $headers);
But when sending a mail directly (Inserting image with insert option) , it shows directly when the mail receives. Can we get this similar functionality of inserting image ?
