pull/1154/head
Rick Carlino 2019-04-15 15:25:52 -07:00
parent 8e11c42a90
commit 91f4237a88
2 changed files with 11 additions and 1 deletions

View File

@ -1,7 +1,7 @@
class UserMailer < ApplicationMailer
RESET_PATH = "/verify/%s"
NOTHING_TO_CONFIRM = "FAILED EMAIL CHANGE"
URI_KLASS = ENV["FORCE_SSL"] ? URI::HTTP : URI::HTTPS
URI_KLASS = ENV["FORCE_SSL"] ? URI::HTTPS : URI::HTTP
# Make sure the user gave us a valid email.
def welcome_email(user)

View File

@ -0,0 +1,10 @@
# Preview all emails at http://localhost:3000/rails/mailers/user
class UserPreview < ActionMailer::Preview
def welcome_email
UserMailer.welcome_email(User.first)
end
def password_reset
UserMailer.password_reset(User.first, "just_an_example")
end
end