Class ProfileNotifications
In: app/models/profile_notifications.rb
Parent: ActionMailer::Base

A mailer to send notications related to changes in a user profiles.

Methods

Included Modules

Login::MailConfig

Public Instance methods

Will send a message to the given user so the user can re-activate their deleted user account. The activation_link is the link that will implement the actual reactivation when the user clicks.

[Source]

    # File app/models/profile_notifications.rb, line 19
19:   def reactivate_account(user, activation_link)
20:     recipients user.email
21:     from system_email(activation_link)
22:     subject "#{subject_prefix}Account Reactivation"
23:     body :user => user, :activation_link => activation_link
24:   end

Will send a message to the given user that will let the user verify their email address. The verification_link argument is the URL of the page that will receive the verification request. The user should just have to click on the link.

[Source]

    # File app/models/profile_notifications.rb, line 9
 9:   def signup_verification(user, verification_link)
10:     recipients user.email
11:     from system_email(verification_link)
12:     subject "#{subject_prefix}Email Verification"
13:     body :user => user, :verification_link => verification_link
14:   end

[Validate]