我在从 php 发送邮件时遇到问题:我配置了水星并在显示程序水星上发送了成功邮件,但在 php 中,邮件已发送但未收到。这是我的 php 代码:
$to = "my_email@gmail.com";
$subject = "Test email from localhost with Mercury";
$fromheader = "From : admin@df.vn";
$content = "This email is a test mail send from localhost. If you read this line, it's working OK ";
$ok = mail($to,$subject,$content,$fromheader);
if($ok)
echo "Mail send OK. Look at MM proccess to watch if it out the localhost. If error, check all your step again !";
else echo "Holly sh!t, something wrong ?";