我无法以html格式发送电子邮箱中的电子邮件地址。 当我用someone@yahoo.com填写表单邮箱时,电子邮件将发送到邮箱 但是当我用someon@gmail.com填写表单邮箱时,电子邮件脚本可以正常工作,但电子邮件不会出现在邮箱或垃圾邮件文件夹中。
-----*This is the html code*-------
<input type="email" name="email" id="email" size="70" /></td>
-----*-------------
$email_from = "$mail";
$email_to = "someone@gmail.com";
$email_message ="test message";
$email_subject = "Registration form "; // email subject line
$headers .= 'MIME-Version: 1.0'."\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1'."\r\n";
$headers .= 'From:'.$mail;
mail($email_to, $email_subject, $email_message, $headers);