Php 邮寄问题

Php 邮寄问题,php,email,Php,Email,非常感谢您对上一个的帮助。 现在又来了一个。 这是我尝试运行代码时的响应 <h3>copy of this order has been emailed to you for your records.</h3> <?php echo $html_body; //send email $headers = array(); $headers[]= 'MIME-Versioon: 1.0'; $headers[] = 'Content-type: text/html;

非常感谢您对上一个的帮助。 现在又来了一个。 这是我尝试运行代码时的响应

<h3>copy of this order has been emailed to you for your records.</h3>
<?php echo $html_body;
//send email
$headers = array();
$headers[]= 'MIME-Versioon: 1.0';
$headers[] = 'Content-type: text/html;charset="iso-8859-1"';
$headers[] = 'Content-Transfer-Encoding: 7bit';
$headers[] = 'From: <priyambikap@gmail.com>';
$headers[] ='Bcc: <priyambika@hotmail.com>';
mail($email,"OrderConformation",$html_head.$html_body,join("\r\n",$headers));
此订单的副本已通过电子邮件发送给您以供记录。

您正在使用您的gmail地址作为发送地址

这是行不通的,如果真是这样,你的邮件就会被任何像样的垃圾邮件过滤器截获


您需要在运行PHP脚本的域上指定一个有效的发件人地址。

您的邮件服务器没有正确配置phpactully。我正在检查脚本是否正常工作。当我提供有效域时,它是否正常工作。@pri只有一种方法可以找到。我如何才能确定客户端是否仍然不确定,但我需要知道我错在哪里或我错在哪里Sertain missing something.its frustating.@pri是什么阻止您在“发件人”字段中简单地输入有效的发件人电子邮件地址?这是有效的您所说的有效是什么意思?是不是应该像“www.example.com”。我没有像这样的东西。