Ruboty::Sendmail

Ruboty handler to send a mail.

Installation

Add this line to your application's Gemfile:

gem 'ruboty-sendmail'

Usage

@ruboty sendmail <address> <body>

Example

> @ruboty sendmail [email protected] This is test.
Success!

Setting

# $HOME/.ruboty-sendmail.yml

method: :smtp            # Default: :smtp
subject: 'ALERT!'        # Default: 'Send by ruboty-sendmail'
from: '[email protected]' # REQUIRED

option:
  address: 'mail.foo.com'
  port: 465
  domain: 'foo.com'
  authentication: :plain
  user_name: 'username'
  password: 'password'
  ssl: true

Available Options

Option Default
address 'localhost'
port 25
domain 'localhost.localdomain'
authentication nil
user_name nil
password nil
ssl nil
enable_starttls_auto true
openssl_verify_mode nil