rosa-build/app/mailers/user_mailer.rb

9 lines
268 B
Ruby

class UserMailer < ActionMailer::Base
default :from => APP_CONFIG['no-reply-email']
def new_user_notification(user)
@user = user
mail(:to => user.email, :subject => "Регистрация на проекте «#{APP_CONFIG['project_name']}»")
end
end