使用 Exchange 帐户发送电子邮件需要哪些 smtp_settings?
我已多次配置 smtp_settings 以在 Google Apps 帐户下发送电子邮件,但现在我需要使用 Exchange 为电子邮件帐户配置它,它会向我抛出执行过期
消息,其中设置如下:
config.action_mailer.smtp_settings = {
:enable_starttls_auto => true,
:address => 'smtp',
:port => 995,
:domain => 'domain',
:user_name => 'username',
:password => 'password',
:authentication => :plain,
}
smtp、域名、用户名和密码是客户给我的。我认为端口必须是 995(因为它使用 SSL)。
有什么想法吗?
I've configured smtp_settings for sending emails under Google Apps accounts several times, but now that I need to configure it for an email account using exchange it throws me execution expired
message with the following settings:
config.action_mailer.smtp_settings = {
:enable_starttls_auto => true,
:address => 'smtp',
:port => 995,
:domain => 'domain',
:user_name => 'username',
:password => 'password',
:authentication => :plain,
}
The smtp, domain, user name and password were given to me by the client. The port I think it must be 995 (as it uses SSL).
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我认为端口是 25 而不是 995,身份验证是登录而不是普通。
Well, I figured that the port was 25 instead of 995 and the authentication was login instead of plain.