Created
March 14, 2020 18:37
-
-
Save donrestarone/21e4865cc09bfa564a3bab7c92897c3c to your computer and use it in GitHub Desktop.
a simple userMailer that sends an email confirmation link
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UserMailer < ApplicationMailer | |
default from: '[email protected]' | |
def welcome_email_confirmation(user) | |
@user = user | |
@email_confirmation_url = user.generate_email_confirmation_link | |
mail(to: user.email, subject: "Welcome to this generic SaaS product #{user.first_name.capitalize}! Please confirm your email" ) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment