Skip to content

Instantly share code, notes, and snippets.

@donrestarone
Created March 14, 2020 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donrestarone/21e4865cc09bfa564a3bab7c92897c3c to your computer and use it in GitHub Desktop.
Save donrestarone/21e4865cc09bfa564a3bab7c92897c3c to your computer and use it in GitHub Desktop.
a simple userMailer that sends an email confirmation link
class UserMailer < ApplicationMailer
default from: 'you@yourdomain.com'
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