首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >PHPMailer:收件人地址被拒绝:您不能使用与登录地址不同的地址发送电子邮件

PHPMailer:收件人地址被拒绝:您不能使用与登录地址不同的地址发送电子邮件
EN

Stack Overflow用户
提问于 2016-06-19 08:44:39
回答 2查看 1.3K关注 0票数 1

我对把电子邮件变成螳螂有问题。我怎样才能解决这个问题?

日志:

代码语言:javascript
运行
复制
2016-06-19 10:38 CEST mail message #165 queued
2016-06-19 10:38 CEST mail Password reset for user @U11 sent to mail@mail.com
2016-06-19 10:38 CEST mail Processing e-mail queue (1 messages)
2016-06-19 10:38 CEST mail Sending message #165 queued on 2016-06-19 10:38 CEST
2016-06-19 10:38 CEST mail ERROR: Message could not be sent - SMTP Error: The following recipients failed: mail@mail.com<p>SMTP server error: 5.7.1 <mail@mail.com>: Recipient address rejected: You cannot send email using FROM address different than your login. 773d.576659f9.52d4c.0

配置:

代码语言:javascript
运行
复制
$g_allow_signup = ON;
$g_enable_email_notification = ON;
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'xx.pl';
$g_smtp_username = 'xx@xx.pl';
$g_smtp_password = 'yy';
$g_smtp_connection_mode = 'tls';
$g_smtp_port = 587;
$g_from_email = 'xx@xx.pl';
$g_from_name = 'Xx';
$g_max_lost_password_in_progress_count = 100;
$g_email_send_using_cronjob = OFF;
$g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT | LOG_FILTERING | LOG_AJAX;
$g_log_destination = 'file:/mantis.log';
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2016-06-20 06:22:11

我刚将$g_return_path_email添加到配置文件中,现在它可以工作了。

票数 -1
EN

Stack Overflow用户

发布于 2016-06-19 10:26:09

就像上面写的--它不允许使用与登录不同的from地址发送。这取决于您的ISP,但请注意,这并不少见- gmail也是这样做的,尽管它确实允许您将别名预先定义为地址的替代。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37905426

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档