Method: Mail::Configuration#lookup_delivery_method

Defined in:
lib/mail/configuration.rb

#lookup_delivery_method(method) ⇒ Object



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/mail/configuration.rb', line 29

def lookup_delivery_method(method)
  case method.is_a?(String) ? method.to_sym : method
  when nil
    Mail::SMTP
  when :smtp
    Mail::SMTP
  when :sendmail
    Mail::Sendmail
  when :exim
    Mail::Exim
  when :file
    Mail::FileDelivery
  when :smtp_connection
    Mail::SMTPConnection
  when :test
    Mail::TestMailer
  when :logger
    Mail::LoggerDelivery
  else
    method
  end
end