- class AuthenticationMailer < ApplicationMailer
- def password_reset_email(user)
- token = Token.new
- token.user = user
- token.tokentype = Token::TYPES[:password_reset]
- token.save!
- @token = token
- @user = user
- mail(to: @user.email, subject: "Aardbei-wachtwoord opnieuw instellen")
- end
- end
|