class UserMailer < ApplicationMailer def activation_needed_email(user) @user = user @url = activate_user_url(@user.activation_token) mail(to: user.email, subject: 'Welcome to My Awesome Site') end def activation_success_email(user) @user = user @url = login_url mail(to: user.email, subject: 'Your account is now activated') end end