Created
November 24, 2014 19:11
-
-
Save terrafied/9ee8a4719d979adc6658 to your computer and use it in GitHub Desktop.
Rails console test email
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
class TestMailer < ActionMailer::Base | |
default :from => "me@mysite.com" | |
def welcome_email | |
mail(:to => "other@elsewhere.com", :subject => "Test mail", :body => "Test mail body") | |
end | |
end | |
TestMailer.welcome_email.deliver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment