Skip to content

Instantly share code, notes, and snippets.

@paulodeleo
Created August 5, 2020 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulodeleo/17a32ab9ff990e2f57189eab3740eb8c to your computer and use it in GitHub Desktop.
Save paulodeleo/17a32ab9ff990e2f57189eab3740eb8c to your computer and use it in GitHub Desktop.
Rails one liner for testing email from console
class TestMailer < ActionMailer::Base; def test; mail from: 'sender@mail.com', to: 'recipient@mail.com', 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