新手问题 Rails Exchange 邮箱设置

yune · July 01, 2015 · Last by yune replied at July 06, 2015 · 3780 hits

我在手机上配置收取邮件只需要填 服务器: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
 }

瞎试,试好了

You need to Sign in before reply, if you don't have an account, please Sign up first.