Module: LeanMail
- Defined in:
- contrib/lib/lean_mail.rb
Overview
Send an email with SMTP easily.
Environment variables:
- SMTP_HOST: Where to connect to.
- SMTP_PORT: Port, optional (default: 25).
- SMTP_SECURITY:
tls
orstarttls
, optional (default:nil
). - SMTP_USER: User, optional.
- SMTP_PASSWORD: Password, optional.
- SMTP_FROM: In the format
Name <user@mail>
oruser@mail
.
Defined Under Namespace
Class Method Summary collapse
-
.deliver(to, subject, body) ⇒ Deliver
Deliver email.