gpt4 book ai didi

ruby-on-rails - 参数错误 : SMTP-AUTH requested but missing user name + ActionMailer

转载 作者:行者123 更新时间:2023-12-04 16:29:37 24 4
gpt4 key购买 nike

每次尝试使用 actionmailer 发送邮件时,我都无法使用 actionmailer 发送邮件 它报告我有错误

ArgumentError: SMTP-AUTH 请求但缺少用户名

这很奇怪,因为我可以通过 Telnet 发送邮件但不能使用 ActionMailer

附加 Telnet 截图

这是我的 SMTP 设置

config.action_mailer.delivery_method = :smtp

config.action_mailer.smtp_settings = {
:address => '216.224.183.100',
:port => 25,
:domain => '[domain_name]',
:username => "[username]",
:password => "[password]",
:authentication => 'plain',
:enable_starttls_auto => true
}

任何人都可以通过邮件告诉我没有被发送

enter image description here

最佳答案

知道了。它是 user_name ,而不是 username .

关于ruby-on-rails - 参数错误 : SMTP-AUTH requested but missing user name + ActionMailer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11806416/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com