Skip to content

Instantly share code, notes, and snippets.

@mbhnyc
Created February 16, 2012 06:21
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 mbhnyc/8c6b49176939e8db182e to your computer and use it in GitHub Desktop.
Save mbhnyc/8c6b49176939e8db182e to your computer and use it in GitHub Desktop.
DelayedJob Error Gist - Mailer
class ProfileMailer < ActionMailer::Base
default from: "noreply@example.com"
def new_message_email(profile)
@profile = profile
@url = "http://www.example.com"
mail :to => "#{profile.username} <#{profile.email}>",
:subject => "You have a new message!"
end
handle_asynchronously :new_message_email, :queue => 'email'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment