Class: SessionMailer

Inherits:
ActionMailer::Base
  • Object
show all
Includes:
Authpwn::SessionMailer
Defined in:
lib/authpwn_rails/generators/templates/session_mailer.rb

Instance Method Summary collapse

Methods included from Authpwn::SessionMailer

#email_verification_email, #reset_password_email

Instance Method Details

#email_verification_from(token, server_hostname, protocol) ⇒ Object



9
10
11
12
# File 'lib/authpwn_rails/generators/templates/session_mailer.rb', line 9

def email_verification_from(token, server_hostname, protocol)
  # You most likely need to replace the e-mail address below.
  %Q|"#{server_hostname} staff" <admin@#{server_hostname}>|
end

#email_verification_subject(token, server_hostname, protocol) ⇒ Object



4
5
6
7
# File 'lib/authpwn_rails/generators/templates/session_mailer.rb', line 4

def email_verification_subject(token, server_hostname, protocol)
  # Consider replacing the hostname with a user-friendly application name.
  "#{server_hostname} e-mail verification"
end

#reset_password_from(token, server_hostname, protocol) ⇒ Object



19
20
21
22
# File 'lib/authpwn_rails/generators/templates/session_mailer.rb', line 19

def reset_password_from(token, server_hostname, protocol)
  # You most likely need to replace the e-mail address below.
  %Q|"#{server_hostname} staff" <admin@#{server_hostname}>|
end

#reset_password_subject(token, server_hostname, protocol) ⇒ Object



14
15
16
17
# File 'lib/authpwn_rails/generators/templates/session_mailer.rb', line 14

def reset_password_subject(token, server_hostname, protocol)
  # Consider replacing the hostname with a user-friendly application name.
  "#{server_hostname} password reset"
end