-
-
Save mbhnyc/8c6b49176939e8db182e to your computer and use it in GitHub Desktop.
DelayedJob Error Gist - Mailer
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 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