Created
October 4, 2012 11:45
-
-
Save modsaid/3833121 to your computer and use it in GitHub Desktop.
Revisions
-
modsaid created this gist
Oct 4, 2012 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ #place this directly in the rails console of ur rails application class UserMailer < ActionMailer::Base default from: '[email protected]' def test_email @receiver_email = '[email protected]' mail(to: @receiver_email, subject: 'testing email from console') end end UserMailer.test_email.deliver! # If the configuration is correct and everything is fine, the receiver should receive the test email instantly