开发者

Actionmailer not working in rails 2.3

开发者 https://www.devze.com 2022-12-24 10:46 出处:网络
I\'m using the following config: ActionMailer::Base.smtp_settings = { :address => \"smtp.gmail.com\",

I'm using the following config:

ActionMailer::Base.smtp_settings = {
  :address => "smtp.gmail.com",
  :port => 587,
  :authentication => :plain,
  :enable_starttls_auto => true,
  :user_name  => "sap@gmail.com",
  :password  => "sap"
}

When I send the mail, log shows mail is sent. 开发者_StackOverflow社区I can see the mail in logger.

But, mail is not delivered to recipient email.


Just went through this myself. If you're using ruby 1.8.6, you need to upgrade to 1.8.7 for it to work out of the box. If not, you can try looking for action_mailer_tls off GitHub.

0

精彩评论

暂无评论...
验证码 换一张
取 消