我知道这个问题被问了好几次,这是一个基本问题,但我在过去三天进行了搜索,但我仍然无法在电子邮件中发送图像。请帮助我如何在我的电子邮件中嵌入图像,即我应该在标题中包含哪些标题编写以下代码。
$to = "example@gmail.com";
$subject = "new account created";
$body = "New account has been created
<img border=’0' src=’http://www.example.com/myimages/track.php?MID=1111&SID=2222' width=’1' height=’1'>
" ;
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
$headers .= "From: admin@gmail.com";
$neww=mail($to,$subject,$body,$headers);