Implement working mailer and controller

This commit is contained in:
James Espinosa
2013-12-04 00:57:32 -06:00
parent 1a3d6d690c
commit da1845e8f9
14 changed files with 132 additions and 7 deletions
+3 -1
View File
@@ -3,6 +3,8 @@ class UserMailer < ActionMailer::Base
def forgot_password(email, token)
@token = token
mail(to: "#{email}", subject: "Reset your RailsGoat password")
@url = url_for(controller: "password_resets", action: "reset_password", only_path: false) + "?token=#{token}"
mail(to: "#{email}", subject: "Reset your MetaCorp password")
end
end