Last active
December 23, 2015 14:39
-
-
Save HatemMahmoud/6650710 to your computer and use it in GitHub Desktop.
Testing ActionMailer configuration using 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
$ rails c | |
class MyMailer < ActionMailer::Base | |
default :from => '[email protected]' | |
def test_email | |
mail(:to => "[email protected]", :subject => 'Testing from Rails console', :body => 'This is a test email') | |
end | |
end | |
MyMailer::test_email.deliver! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment