Method: Mail::Message#delivery_method

Defined in:
lib/mail/message.rb

#delivery_method(method = nil, settings = {}) ⇒ Object



274
275
276
277
278
279
280
# File 'lib/mail/message.rb', line 274

def delivery_method(method = nil, settings = {})
  unless method
    @delivery_method
  else
    @delivery_method = Configuration.instance.lookup_delivery_method(method).new(settings)
  end
end