Created
January 7, 2020 12:35
-
-
Save prdanelli/d4c5511ca4b38ff1c1211331228f6586 to your computer and use it in GitHub Desktop.
Send email from Rails Console.
This file contains 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
options = { | |
to: "recipient@address.com", | |
from: "email@address.org", | |
subject: "Testing", | |
body: "This is the body" | |
} | |
ActionMailer::Base.mail(options).deliver_now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment