Pear Mail - 收件人地址被拒绝 - 错误 [英] Pear Mail - Recipient address rejected - Error

查看:60
本文介绍了Pear Mail - 收件人地址被拒绝 - 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 Pear Mail 时遇到以下错误:

I am running into the following error using Pear Mail:

Notice: Error in sending mail: Failed to add recipient: user@domain.com [SMTP: Invalid response code received from server (code: 550, response: 5.1.1 : Recipient address rejected: User unknown in virtual mailbox table)] in /PEAR/PEAR.php on line 873

电子邮件未发送.其他电子邮件地址(例如 Gmail 和 Yahoo)工作正常.据我所知,它只会针对特定的电子邮件客户端出错.

The email is not sent. Other email addresses such as Gmail and Yahoo are working OK. It only errors for specific email clients, as far as I am aware.

我正在使用以下脚本发送排队的邮件:

I am using the following script to send the queued mail:

require_once "Mail/Queue.php";

$db_options['type']        = 'mdb2';
$db_options['dsn']         = 'mysql://username:password@localhost/db';
$db_options['mail_table']  = 'mailqueue';
$mail_options['driver']    = 'smtp';
$mail_options['host']      = 'hostAddress';
$mail_options['port']      = 25;
$mail_options['localhost'] = 'localhost'; //optional Mail_smtp parameter
$mail_options['auth']      = false;
$mail_options['username']  = 'user@domain.com';
$mail_options['password']  = 'password'; 

$max_amount_mails = 100;
$mail_queue =& new Mail_Queue($db_options, $mail_options);
$mail_queue->sendMailsInQueue($max_amount_mails);

有没有人知道为什么特定地址会导致此错误?

Does anyone have any ideas why this error would be caused for specific addresses?

我正在运行 PHP5.2/Apache2(CentOS 5.5)/Pear Mail 1.2.0/Pear Mail Queue 1.2.6/

I am running PHP5.2/Apache2(CentOS 5.5)/Pear Mail 1.2.0/Pear Mail Queue 1.2.6/

谢谢

推荐答案

天哪,该错误消息的填充比错误还多!让我们把它分开一点.

My goodness, that error message has more padding than error! Let's split it out a bit.

Notice: 
Error in sending mail: 
Failed to add recipient: user@domain.com 
[SMTP: 
Invalid response code received from server 
(code: 550, 
response: 5.1.1 : 
Recipient address rejected: 
User unknown in virtual mailbox table)]

最后一行是我们唯一关心的.

That last line is the only one we care about.

SMTP 服务器查找了您使用的地址,并抱怨无法找到该用户.换句话说,地址是虚假的,正在被拒绝.

The SMTP server looked up the address you were using and is complaining that the user could not be located. In other words the address is bogus and is being rejected.

这篇关于Pear Mail - 收件人地址被拒绝 - 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆