email.rb

Path: lib/god/contacts/email.rb
Last Update: Tue Dec 06 18:23:10 +0000 2011

Send a notice to an email address.

to_email - The String email address to which the email will be sent. to_name - The String name corresponding to the recipient. from_email - The String email address from which the email will be sent. from_name - The String name corresponding to the sender. delivery_method - The Symbol delivery method. [ :smtp | :sendmail ]

                  (default: :smtp).

SMTP Options (when delivery_method = :smtp) ===

server_host - The String hostname of the SMTP server (default: localhost). server_port - The Integer port of the SMTP server (default: 25). server_auth - The Boolean of whether or not to use authentication

                  (default: false).

SMTP Auth Options (when server_auth = true) ===

server_domain - The String domain. server_user - The String username. server_password - The String password.

Sendmail Options (when delivery_method = :sendmail) ===

sendmail_path - The String path to the sendmail executable

                  (default: "/usr/sbin/sendmail").

sendmail_args - The String args to send to sendmail (default "-i -t").

Required files

time   net/smtp  

[Validate]