gmail smtp with rails 3

后端 未结 4 1749
情深已故
情深已故 2020-12-05 02:38

I am trying to get a confirmation email sending using a gmail account. I have looked around and there is nothing that is obvious. There is no errors or anything, it just dos

4条回答
  •  庸人自扰
    2020-12-05 03:06

    You don't need tlsmail gem anymore at least with Rails 3.2

    This will be sufficient

    config.action_mailer.delivery_method = :smtp
    config.action_mailer.smtp_settings = {
      :address              => "smtp.gmail.com",
      :port                 => 587,
      :domain               => 'baci.lindsaar.net',
      :user_name            => '',
      :password             => '',
      :authentication       => 'plain',
      :enable_starttls_auto => true  }
    

    From the all-mighty-guide ActionMailer configuration for gmail

提交回复
热议问题