新手问题 Rails Exchange 邮箱设置

yune · 2015年07月01日 · 最后由 yune 回复于 2015年07月06日 · 3779 次阅读

我在手机上配置收取邮件只需要填 服务器:mail.euchost.com 用户名:[email protected] 密码:password 还有选择 exchange 就可以配好

但是在配置的时候还需要填端口,authentication 啥的 假设我的邮箱是 [email protected],我按照下面的填,邮件发不出去 注释是 QQ 配置 测试可以发邮件,不知道 exchange 的写法哪里不对?还是还需要改其他地方?

config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
  # :address => "smtp.qq.com",
  # :port => 587,
  # :domain => "qq.com",
  # :authentication => :login,
  # :user_name => "[email protected]",
  # :password => "password"
   :address => "mail.euchost.com",
   :port => 110,
   :domain => "abc.cn",
   :authentication => :ntlm,
   :user_name => "[email protected]",
   :password => "password"

 }
config.action_mailer.default_url_options = { host: ENV['Host'] }
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
   :address => ENV['Mail_address'],
   :port => 25,
   :domain => "euchost.com",
   :authentication => :login,
   :user_name => ENV['Mail_user_name'],
   :password => ENV['Mail_pass'],
   :enable_starttls_auto => true
 }

瞎试,试好了

需要 登录 后方可回复, 如果你还没有账号请 注册新账号