Class UserMailer
In: app/models/user_mailer.rb
Parent: ActionMailer::Base

Methods

Constants

FROM_EMAIL = 'do-not-reply@kotoba.wardosworld.com'
CONTENT_TYPE = 'text/html'

Public Instance methods

[Source]

    # File app/models/user_mailer.rb, line 7
 7:   def activate_account(user, sent_at = Time.now)
 8:     subject       'Kotoba :: Activate Your Account'
 9:     recipients    user.email
10:     from          FROM_EMAIL
11:     sent_on       sent_at
12:     body          :user => user, :link => "http://kotoba.wardosworld.com/activate?activation=#{CGI::escape(user.activation)}&email=#{CGI::escape(user.email)}"
13:     content_type  CONTENT_TYPE
14:   end

[Source]

    # File app/models/user_mailer.rb, line 25
25:   def new_account_password(user, new_password, sent_at = Time.now)
26:     subject       'Kotoba :: New Account Password'
27:     recipients    user.email
28:     from          FROM_EMAIL
29:     sent_on       sent_at
30:     body          :user => user, :new_password => new_password
31:     content_type  CONTENT_TYPE
32:   end

[Source]

    # File app/models/user_mailer.rb, line 16
16:   def request_password_reset(user, sent_at = Time.now)
17:     subject       'Kotoba :: Request Password Reset'
18:     recipients    user.email
19:     from          FROM_EMAIL
20:     sent_on       sent_at
21:     body          :user => user, :link => "http://kotoba.wardosworld.com/confirm_password?confirmation=#{CGI::escape(user.activation)}&email=#{CGI::escape(user.email)}"
22:     content_type  CONTENT_TYPE
23:   end

[Validate]