Last active
July 20, 2016 18:13
-
-
Save rwarbelow/b259dde8dd70618347103dc0a1a1230b to your computer and use it in GitHub Desktop.
Mail Gem Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'mail' | |
| mail = Mail.new do | |
| from '[email protected]' | |
| to '[email protected]' | |
| subject 'Hello!' | |
| body 'This is an email that was sent using Ruby.' | |
| end | |
| mail.delivery_method :sendmail | |
| mail.deliver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment