Class: ActionMailer::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/em-mailer.rb

Constant Summary collapse

@@em_mailer_settings =
{
  :host             => 'localhost',
  :port             => 5600,
  :delivery_method  => :sendmail,
  :delivery_options => {}
}

Instance Method Summary collapse

Instance Method Details

#perform_delivery_em_mailer(mail) ⇒ Object



16
17
18
19
# File 'lib/em-mailer.rb', line 16

def perform_delivery_em_mailer(mail)
  em_client = Em::Mailer::Client.new(em_mailer_settings)
  em_client.deliver!(mail)
end