Skip to content

Instantly share code, notes, and snippets.

@panterch
Created December 22, 2008 11:39
Show Gist options
  • Save panterch/38960 to your computer and use it in GitHub Desktop.
Save panterch/38960 to your computer and use it in GitHub Desktop.
actionmailer testmail
class Notifier < ActionMailer::Base
def test(recipient)
recipients recipient
from 'notifier@example.com'
subject 'test mail'
body 'test'
end
end
Notifier.deliver_test('x@example.com')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment