Created
August 5, 2020 18:33
-
-
Save paulodeleo/17a32ab9ff990e2f57189eab3740eb8c to your computer and use it in GitHub Desktop.
Rails one liner for testing email from 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
class TestMailer < ActionMailer::Base; def test; mail from: '[email protected]', to: '[email protected]', subject: 'Test e-mail subject', body: 'Test e-mail body'; end; end; TestMailer.test.deliver_now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment