PHP邮件错误-无法将邮件发送到SMTP服务器.未指定收件人.ite.准备好的在里面


PHP Mail error - Unable to send message to SMTP server. No recipients specified. ite. ready. in

我正在尝试使用一个简单的php电子邮件

这在我的生产服务器中工作。但这在我的开发服务器中不起作用。我找不到缺少的服务器配置

我收到错误

Unable to send message to SMTP server. No recipients specified. ite. ready. in  "filepath" on line 17

这个站点是什么

$toemail="me@example.com";
 $subject="subject line" ;
  $content="conetent message";
$frmemail = "From:you@example.com" ;
    mail( $toemail,$subject,$content,$frmemail ) ;

有人能建议我缺少的配置或php.ini设置吗

devi在端口上访问。

我在这里看到了完全相同的错误

http://www.phpfreaks.com/forums/index.php?topic=134654

http://forums.zend.com/viewtopic.php?t=5151&f=77#p23409

但是,阻止从不同域发送电子邮件的一些安全设置是什么??

ZMAil
SMTP  localhost  
smtp_port  25  
sendmail_from  no value  

第四个参数-附加标头-是可选的。如果未设置,将使用php.ini中的sendmail_from选项。如果您有权访问php.ini文件,请尝试将该选项设置为you@example.com并从mail()函数中删除第4个参数。

更改服务器上的这些设置似乎可以成功发送电子邮件。更改的设置为:

AUTOADD(*YES)
ALWRLY(*ALL)

允许依赖邮件是主要的