Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mscoutermarsh/3605905 to your computer and use it in GitHub Desktop.
Save mscoutermarsh/3605905 to your computer and use it in GitHub Desktop.
Rails Console Actionmailer test
# Copy and paste this to the rails console to test your email settings
class MyMailer < ActionMailer::Base
def msg
mail(
# Option 2
:from => "[email protected]",
:to => "[email protected]",
:subject => "hey dude"
)
end
end
# then to test it....
MyMailer.msg.deliver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment