Last Modified
2013-07-20 21:57:21 +0000
Requires
  • time
  • net/smtp

Description

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 Symbol authentication method. Possible values:

[ nil | :plain | :login | :cram_md5 ]
The default is nil, which means no authentication. To
enable authentication, pass the appropriate symbol and
then pass the appropriate SMTP Auth Options (below).

SMTP Auth Options (when server_auth != nil) ===

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").