Search code examples
ruby-on-railsemailsmtpgmailruby-on-rails-plugins

Delivery issues with Rails + Gmail SMTP in Dreamhost


I just released a Rails app in Dreamhost and I'm using Google Apps for my domain to handle Emai. I created the admin@domain.com account to serve as the sender authentication.

I installed smtp-tls plugin and my smtp conf is:

config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
  :enable_starttls_auto => true,
  :address        => "smtp.gmail.com",
  :port           => 587,
  :domain         => "www.domain.com",
  :authentication => :plain,
  :user_name      => "admin@domain.com",
  :password       => 'secret'
}

The problem: Emails sometimes arrives, and sometimes don't. The recipient addresses are not exclusively Yahoo or GMail accounts, so I think it's not a spam issue. Any ideas? Thanks!


Solution

  • If you want better tracking of whether or not your emails are getting where you're trying to send them, checkout PostageApp:

    http://postageapp.com/