Module: ActionMailer::JavaMail

Defined in:
lib/action_mailer/java_mail.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object

:nodoc:



3
4
5
6
# File 'lib/action_mailer/java_mail.rb', line 3

def self.included(base) #:nodoc:
  base.cattr_accessor :javamail_settings
  base.javamail_settings = {}
end

Instance Method Details

#perform_delivery_javamail(mail) ⇒ Object



8
9
10
11
12
# File 'lib/action_mailer/java_mail.rb', line 8

def perform_delivery_javamail(mail)
  ::JavaMail::Mailer.open(javamail_settings) do |mailer|
    mailer.send_message(mail)
  end
end