php中的电子邮件脚本出错

时间:2010-08-16 19:06:29

标签: php email

电子邮件脚本 -

$subject = "[New Order] " . $_SESSION['orderId'];
$email   = $shopConfig['email'];
$message = "You have a new order. Check the order detail here \n http://" .     $_SERVER['HTTP_HOST'] . WEB_ROOT . 'admin/order/index.php?view=detail&oid=' . $_SESSION['orderId'] ;
mail($email, $subject, $message, "From: $email\r\nReturn-path: $email"); //line 20th

警告:mail()[function.mail]:SMTP服务器响应:553抱歉,在您的位置[173.201.196.177](#5.7.1)拒绝转发D:\ Hosting \ 6448289 \ html \第20行的产品\ success.php

为什么会抛出这样的错误?

1 个答案:

答案 0 :(得分:1)

这是授权错误,而不是PHP的问题。

有关此特定问题的详细信息,请参阅http://ask-leo.com/why_does_email_bounce.html