2011-09-15 18:56:20 +01:00
|
|
|
# coding: UTF-8
|
|
|
|
|
2011-03-10 21:48:15 +00:00
|
|
|
class UserMailer < ActionMailer::Base
|
2011-03-31 13:21:43 +01:00
|
|
|
default :from => APP_CONFIG['no-reply-email']
|
2011-03-10 21:48:15 +00:00
|
|
|
|
|
|
|
def new_user_notification(user)
|
|
|
|
@user = user
|
2011-03-30 23:11:37 +01:00
|
|
|
mail(:to => user.email, :subject => "Регистрация на проекте «#{APP_CONFIG['project_name']}»") do |format|
|
2011-03-31 13:21:43 +01:00
|
|
|
format.html
|
2011-03-30 23:11:37 +01:00
|
|
|
end
|
2011-03-10 21:48:15 +00:00
|
|
|
end
|
|
|
|
end
|