f639fd21e5
"welcome to <site>" makes it sound like you already got signed up, say "you have been invited to <site>" instead
15 lines
360 B
Ruby
15 lines
360 B
Ruby
class InvitationMailer < ActionMailer::Base
|
|
default :from => "#{Rails.application.name} " <<
|
|
"<nobody@#{Rails.application.domain}>"
|
|
|
|
def invitation(invitation)
|
|
@invitation = invitation
|
|
|
|
mail(
|
|
:to => invitation.email,
|
|
subject: "[#{Rails.application.name}] You have been invited to " <<
|
|
Rails.application.name
|
|
)
|
|
end
|
|
end
|