【问题标题】:error occurred in email script in phpphp 中的电子邮件脚本发生错误
【发布时间】:2010-08-17 04:35:04
【问题描述】:

电子邮件脚本 -

$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 抱歉,在 D:\Hosting\6448289\html\ 中从您的位置 [173.201.196.177] (#5.7.1) 拒绝中继products\success.php 第 20 行

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

【问题讨论】:

    标签: php email


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-06-02
      • 2011-09-16
      • 1970-01-01
      • 1970-01-01
      • 2012-09-12
      • 2011-04-28
      • 1970-01-01
      • 2012-10-16
      相关资源
      最近更新 更多