17 lines
338 B
Ruby
17 lines
338 B
Ruby
class UserMailer < ApplicationMailer
|
|
helper(:mailer)
|
|
|
|
def email_verification
|
|
@user = params[:user]
|
|
@token = params[:token]
|
|
|
|
mail(to: @user.email, subject: "[Forg] Verify your email")
|
|
end
|
|
|
|
def email_verified
|
|
@user = params[:user]
|
|
|
|
mail(to: @user.email, subject: "[Forg] Your email has been verified")
|
|
end
|
|
end
|