Open-Source-Access-Control-.../app/mailers/user_mailer.rb

21 lines
507 B
Ruby
Raw Normal View History

2013-02-01 11:44:05 +00:00
class UserMailer < ActionMailer::Base
2013-10-06 11:09:56 +00:00
default :from => "no-reply@heatsynclabs.org"
2013-02-01 11:44:05 +00:00
def new_user_email(user)
@user = user
@url = "http://members.heatsynclabs.org"
2013-10-06 11:09:56 +00:00
mail(:to => 'member-notifications@heatsynclabs.org',
:subject => "New HSL Member: "+user.name)
end
def email(to_user,from_user,subject,body)
@url = "http://members.heatsynclabs.org"
@body = body
@from_user = from_user
mail(:to => to_user.email,
:subject => "HSL Message: "+subject)
2013-02-01 11:44:05 +00:00
end
end