smtp - Bugzilla SMTP 身份验证

标签 smtp bugzilla smtp-auth

我已经在我的本地计算机(Windows 7)中安装了 bugzilla,并且运行良好。但是当我尝试创建一个新帐户时,它说

There was an error sending mail from <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e18895a1868c80888dcf828e8c" rel="noreferrer noopener nofollow">[email protected]</a> to <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3d4f5c7d5a505c5451135e5250" rel="noreferrer noopener nofollow">[email protected]</a>:
Could't set FROM:
530 5.5.1 Authentication Required.
Learn more at at C:/Perl/site/lib/Email/Send/SMTP/TLS.pm line 49.

我应该在 TLS.pm 中做什么改变? ?

我什至配置了参数>bugzilla 中的电子邮件部分:

mail_delivery_method = SMTP::TLS,
mailfrom = <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d9b0ad99beb4b8b0b5f7bab6b4" rel="noreferrer noopener nofollow">[email protected]</a>,
smtpserver = smtp.gmail.com:587,
smtp_username = my gmail username,
smtp_password = my gmail password,

TLS.pm文件第 49 行显示:$SMTP->mail($from);

我是否留下了其他东西来使用 SMTP?

最佳答案

确保您在 Mailer.pm 中有以下内容。只需打开文件并编辑它。请注意,字段名称是'User'而不是'username'。为了避免兼容性问题(如果有),请保留两者。

User => Bugzilla->params->{"smtp_username"},  
Password => Bugzilla->params->{"smtp_password"},

关于smtp - Bugzilla SMTP 身份验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7429314/

相关文章:

javascript - 使用 Javascript 使用 HTTP 以外的协议(protocol)连接服务器

bugzilla - 我如何从 Bugzilla 发送测试电子邮件?

php - 获取 PHP 中的 bugzilla 错误列表

spring-boot - 通过 somain 注册商 1and1 smtp 使用 Spring 邮件发送邮件时遇到问题

c# - 服务器响应为 : 5. 7.1 中继被拒绝

python - 为什么 SendGrid 允许我从任何地址发送电子邮件?

java - 正则表达式是否是解析 SMTP 接收行的不错选择

perl - (perl Net::SMTP) 使用 gmail smtp 服务器身份验证失败

java - 使用本地主机而不是 gmail 发送邮件

svn - 使用 wiki 作为中央开发项目存储库