PHP HTML邮件不在Gmail上显示图像

时间:2015-10-21 00:08:45

标签: php html-email

我正在使用此代码通过PHP发送HTML邮件

  $to = $theEmail;
  $subject = 'Renewables Toolbox App Password';
  $headers = "From: BC_ROR_Decision_Support_Tool" . strip_tags($_POST['req-email']) . "\r\n";
  $headers .= "MIME-Version: 1.0\r\n";
  $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
  $message = '<html><body>';
  $message .= '<img src="http://renewablestoolbox.ca/img/rorlogo.png" alt="BC ROR Decision Support Tool" height="42" width="42"><h4>Hi, '.$theFName.'</h4><p> Your Password is: '.$thePass.'</body></html>';
mail($to, $subject, $message, $headers);

邮件正在发送,甚至<img alt="BC ROR Decision Support Tool">标记显示在控制台标记中,但没有图形显示!

0 个答案:

没有答案