Skip to content

Sending email via Amazon SES

afazio edited this page Apr 17, 2013 · 4 revisions
Mail.defaults do
  delivery_method :smtp, { 
    :address => 'email-smtp.us-east-1.amazonaws.com',
    :port => '587',
    :user_name => ENV['AWS_SMTP_USER'],
    :password => ENV['AWS_SMTP_PASSWORD'],
    :authentication => :plain,
    :enable_starttls_auto => true
  }
end

If :enable_starttls_auto does not work as expected, try using :tls instead on port 465. Amazon SES supports ports 25, 465, and 587.

Clone this wiki locally