method

add_delivery_method

add_delivery_method(symbol, klass, default_options = {})
public

Adds a new delivery method through the given class using the given symbol as alias and the default options supplied.

add_delivery_method :sendmail, Mail::Sendmail,
  location:  '/usr/sbin/sendmail',
  arguments: '-i'