Hook up Mandrill with Ruby on Rails. http://help.mandrill.com/entries/21738467-Using-Mandrill-s-SMTP-integration-with-Web-Frameworks
# app/mailers/your_mailer.rb
class YourMailer < ActionMailer::Base
def email_name
mail :subject => "Mandrill rides the Rails!",
:to => "recipient@example.com",
:from => "you@yourdomain.com"
end
end
# In a controller: YourMailer.email_name.deliver
# production.rb, test.rb, development.rb or application.rb
YourApp::Application.configure do
config.action_mailer.smtp_settings = {
:address => "smtp.mandrillapp.com",
:port => 25, # ports 587 and 2525 are also supported with STARTTLS
:enable_starttls_auto => true, # detects and uses STARTTLS
:user_name => "MANDRILL_USERNAME",
:password => "MANDRILL_PASSWORD", # SMTP password is any valid API key
:authentication => 'login' # Mandrill supports 'plain' or 'login'
}
# …
end