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

Project iboard4 Author Andreas Altendorfer Copyright 2009 by Andreas Altendorfer

When emails have to be send it whith this Mailer Class.

Methods

Public Instance methods

[Source]

    # File app/models/user_mailer.rb, line 38
38:   def account_invitation(sender,t_recipient_email,t_subject,message,hostname,register_url,client_ip)
39:     subject     t_subject
40:     from        sender.email
41:     recipients  [t_recipient_email, sender.email]
42:     sent_on     Time::now
43:     body        :message => message, :sender => sender, :hostname => hostname, :register_url => register_url, :client_ip => client_ip
44:     content_type "text/html"
45:   end

[Source]

    # File app/models/user_mailer.rb, line 29
29:   def comment_notification(comment,t_subject,commentable_url)
30:     subject     t_subject
31:     from        comment.user.email
32:     recipients  comment.commentable.user.email
33:     sent_on     Time::now
34:     body        :comment => comment, :commentable_url => commentable_url
35:     content_type  "text/html"
36:   end

[Source]

    # File app/models/user_mailer.rb, line 20
20:   def new_account_instructions(user,subject)
21:     subject     subject
22:     from        "noreply@#{default_url_options[:host]}"
23:     recipients  user.email
24:     sent_on     Time::now
25:     body        :edit_password_reset_url => edit_reset_password_url(user.perishable_token)
26:     content_type  "text/html"
27:   end

Deliver Newsletter

[Source]

    # File app/models/user_mailer.rb, line 48
48:   def newsletter(sender,to,title,subject_txt,header_image_tag,header,footer,body_html,url)
49:     recipients              to
50:     from                    sender
51:     subject                 subject_txt
52:     body                    :header_image_tag => header_image_tag, :header => header, :message => body_html, :footer => footer, :url => url
53:     content_type            "text/html"
54:   end

[Source]

    # File app/models/user_mailer.rb, line 11
11:   def password_reset_instructions(user,subject)
12:     subject     subject
13:     from        "noreply@#{default_url_options[:host]}"
14:     recipients  user.email
15:     sent_on     Time::now
16:     body        :edit_password_reset_url => edit_reset_password_url(user.perishable_token)
17:     content_type  "text/html"
18:   end

[Validate]