pull/1154/head
parent
8e11c42a90
commit
91f4237a88
|
@ -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)
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue