2012-05-17 201 views
0

我在窗户向安装了XAMPP发送邮件已经写一个PHP代码发送mail.Here是无法通过PHP脚本

$to="[email protected]"; 
$subject="Test mail"; 
$message="sany and sovon"; 
if(mail($to,$subject,$message)) 
    echo "mail sent succesfully"; 
else 
    echo "delivered failed" 

我在php.ini文件中sendmail的cofiguration在这里 [邮件功能]

SMTP = localhost 
smtp_port = 25 


sendmail_from = localhost 

我认为这个问题是在“sendmail_from”。它需要我的邮件服务器address.where我得到的address.There是提前XAMPP目录内help.Thanks一个sendmail的文件夹... ..

回答