【发布时间】:2013-08-19 08:28:09
【问题描述】:
我正在尝试使用 noreply 发送电子邮件,但它不起作用 - 它不会发送任何内容。我正在使用这个测试文件:
<?php
$to = 'myemailhere';
$subject = 'You received an email message!';
$message = 'This is a message in the email body form.';
$headers = 'From: noreply@example.com' . "\r\n" .
'Reply-To: noreply@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>
可能是什么问题?顺便说一句,我正在使用 rackspacke,如果有人知道的话。
提前致谢!
【问题讨论】:
-
有什么错误吗?此外,您可能想看看使用 PHPMailer。也可能是 Rackspace 限制了您发送邮件的选项...
-
这可能与您的 SMTP 配置有关,不是编程问题。