Sha256: 6a829b947344c229474740bc9b704540f640ab5f2d4d8e7008e2b3ae9f3aa39c
Contents?: true
Size: 793 Bytes
Versions: 5
Compression:
Stored size: 793 Bytes
Contents
ActionMailer::Base.delivery_method = :sendmail # Send mail to a user to administer that user's login. Called by UserController. class UserMailer < ActionMailer::Base # Send a forgot-password email, allowing the user to regain their login name # and password. def forgot_password(user, url) @body['user'] = user @body['url'] = url recipients user.email subject 'Login and password recovery.' from 'bruce@perens.com' end # Send a new-user email, providing the user with a URL used to validate # that user's login. def new_user(params, url, token_expiry) @body['params'] = params @body['url'] = url @body['token_expiry'] = token_expiry recipients params['email'] subject 'Your new login is ready' from 'bruce@perens.com' end end
Version data entries
5 entries across 5 versions & 1 rubygems