Class: Spud::CoreMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/spud/core_mailer.rb

Instance Method Summary collapse

Instance Method Details

#forgot_password_notification(user) ⇒ Object

default_url_options = request.host_with_port



4
5
6
7
8
9
10
# File 'app/mailers/spud/core_mailer.rb', line 4

def forgot_password_notification(user)
	@user = user
	@url = edit_spud_password_reset_url(:id => user.perishable_token)
	# @url = "/spud/password_resets/#{user.perishable_token}/edit"
	  	mail(:from =>Spud::Core.from_address,:to => user.email, :subject => "Forgot Password Request from #{Spud::Core.config.site_name}")

end