Module: MmMail

Defined in:
lib/mmmail.rb

Defined Under Namespace

Classes: Message, Transport, TransportError

Class Method Summary collapse

Class Method Details

.mail(opts = {}, config = nil) ⇒ Object

Quickly send out an email.

Examples:

MmMail.mail(:to => '[email protected]', :body => 'hi!')

Parameters:

  • opts (Hash) (defaults to: {})

    the hash used to construct the message

  • config (Transport::Config, nil) (defaults to: nil)

    the configuration object to use during transport

See Also:



288
289
290
# File 'lib/mmmail.rb', line 288

def self.mail(opts = {}, config = nil)
  Transport.mail(Message.new(opts), config)
end