Class Backup::Notifier::Mail
In: lib/backup/notifier/mail.rb
Parent: Base

Methods

new  

Attributes

address  [RW]  The address to use Example: smtp.gmail.com
authentication  [RW]  Authentication type Example: plain
delivery_method  [RW]  Mail delivery method to be used by the Mail gem. Supported methods:

`:smtp` [::Mail::SMTP] (default) : Settings used only by this method: : `address`, `port`, `domain`, `user_name`, `password` : `authentication`, `enable_starttls_auto`, `openssl_verify_mode`

`:sendmail` [::Mail::Sendmail] : Settings used only by this method: : `sendmail`, `sendmail_args`

`:exim` [::Mail::Exim] : Settings used only by this method: : `exim`, `exim_args`

`:file` [::Mail::FileDelivery] : Settings used only by this method: : `mail_folder`

domain  [RW]  Your domain (if applicable) Example: mydomain.com
enable_starttls_auto  [RW]  Automatically set TLS Example: true
exim  [RW]  When using the `:exim` `delivery_method` option, this may be used to specify the absolute path to `exim` (if needed) Example: ’/usr/sbin/exim‘
exim_args  [RW]  Optional arguments to pass to `exim` Note that this will override the defaults set by the Mail gem (currently: ’-i -t’) So, if set here, be sure to set all the arguments you require. Example: ’-i -t -X/tmp/traffic.log‘
from  [RW]  Sender and Receiver email addresses Examples:
 sender   - my.email.address@gmail.com
 receiver - your.email.address@gmail.com
mail_folder  [RW]  Folder where mail will be kept when using the `:file` `delivery_method` option. Default location is ’$HOME/Backup/emails’ Example: ’/tmp/test-mails‘
openssl_verify_mode  [RW]  OpenSSL Verify Mode Example: none - Only use this option for a self-signed and/or wildcard certificate
password  [RW]  Username and Password (sender email‘s credentials) Examples:
 user_name - meskyanichi
 password  - my_secret_password
port  [RW]  The port to connect to Example: 587
sendmail  [RW]  When using the `:sendmail` `delivery_method` option, this may be used to specify the absolute path to `sendmail` (if needed) Example: ’/usr/sbin/sendmail‘
sendmail_args  [RW]  Optional arguments to pass to `sendmail` Note that this will override the defaults set by the Mail gem (currently: ’-i -t’) So, if set here, be sure to set all the arguments you require. Example: ’-i -t -X/tmp/traffic.log‘
to  [RW]  Sender and Receiver email addresses Examples:
 sender   - my.email.address@gmail.com
 receiver - your.email.address@gmail.com
user_name  [RW]  Username and Password (sender email‘s credentials) Examples:
 user_name - meskyanichi
 password  - my_secret_password

Public Class methods

[Validate]