Created
March 9, 2016 01:37
-
-
Save modsaid/103f31173c30f1719ef4 to your computer and use it in GitHub Desktop.
Script to test action mailer configuration. to be run through the console, or rails runner
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
# author @modsaid | |
# Script to test action mailer configuration. to be run through the console, or rails runner | |
class MyMailer < ActionMailer::Base | |
default from: 'notifications@example.com' | |
def test_email | |
mail(to: "mail@exmaple.com", | |
subject: 'SMTP configuraiton test', | |
body: 'bla bla bla') | |
end | |
end | |
MyMailer::test_email.deliver_now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment