Last active
April 14, 2023 19:30
-
-
Save manzhikov/05e8814fa83d587705ee to your computer and use it in GitHub Desktop.
rails console actionmailer test
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