Skip to content

Instantly share code, notes, and snippets.

@ahk
Created Mar 15, 2011
Embed
What would you like to do?
class ActivityMailer < ActionMailer::Base
def reply(comment, deliver_to_user)
@comment = comment
mail(:subject => I18n.t(:'activity_mailer.subject', :project_name => project.name, :activity_name => response.activity.short_name),
:from => "no-reply@example.com",
:to => deliver_to_user.email)
end
def message(app_message)
@body = app_message.text
mail(:to => app_message.recipient.email,
:subject => "#{app_message.project.name}: #{app_message.subject}",
:from => "no-reply@example.com")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment