Using Amazon SES with Rails ActionMailer

前端 未结 10 1398
南旧
南旧 2020-12-04 09:42

What would be the best way to go about making ActionMailer send mail via Amazon SES in Rails 3?

Edit:

This is now a gem:

gem install amazon-         


        
10条回答
  •  感情败类
    2020-12-04 10:04

    After poking around a bit I ended up just making a simple class to do this.

    https://github.com/abronte/Amazon-SES-Mailer

    In rails, you can get the encoded email message:

    m = UserMailer.welcome.encoded
    AmazonSES.new.deliver(m)
    

提交回复
热议问题