Skip to content

Sending email via Amazon SES

Carl Hörberg edited this page Feb 17, 2015 · 5 revisions
Mail.defaults do
  delivery_method :smtp, { 
    :address => 'email-smtp.us-east-1.amazonaws.com',
    :port => 465,
    :user_name => ENV['AWS_SMTP_USER'],
    :password => ENV['AWS_SMTP_PASSWORD'],
    :authentication => :plain,
    :tls => true
  }
end

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

Clone this wiki locally