Class: Helpdesk::NotificationsMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/helpdesk/notifications_mailer.rb

Instance Method Summary collapse

Instance Method Details

#comment_by_helpdesk_confirmation(comment) ⇒ Object



35
36
37
38
39
# File 'app/mailers/helpdesk/notifications_mailer.rb', line 35

def comment_by_helpdesk_confirmation(comment)
  @comment = comment
  mail(:subject=>"#{t('helpdesk.name')} | #{comment.ticket.subject}",
       :to => Helpdesk.email)
end

#comment_by_helpdesk_notification(comment) ⇒ Object



29
30
31
32
33
# File 'app/mailers/helpdesk/notifications_mailer.rb', line 29

def comment_by_helpdesk_notification(comment)
  @comment = comment
  mail(:subject=>"#{Helpdesk.helpdesk_name} | #{comment.ticket.subject}",
       :to => comment.ticket.requester.email)
end

#comment_by_requester_confirmation(comment) ⇒ Object



22
23
24
25
26
# File 'app/mailers/helpdesk/notifications_mailer.rb', line 22

def comment_by_requester_confirmation(comment)
  @comment = comment
  mail(:subject=>"#{Helpdesk.helpdesk_name} | #{comment.ticket.subject}",
       :to => comment.ticket.requester.email)
end

#comment_by_requester_notification(comment) ⇒ Object



16
17
18
19
20
# File 'app/mailers/helpdesk/notifications_mailer.rb', line 16

def comment_by_requester_notification(comment)
  @comment = comment
  mail(:subject=>"#{Helpdesk.helpdesk_name} | #{comment.ticket.subject}",
       :to => Helpdesk.email)
end

#ticket_created_confirmation(ticket) ⇒ Object



9
10
11
12
13
# File 'app/mailers/helpdesk/notifications_mailer.rb', line 9

def ticket_created_confirmation(ticket)
  @ticket = ticket
  mail(:subject=>"#{Helpdesk.helpdesk_name} | #{ticket.subject}",
       :to => ticket.requester.email)
end

#ticket_created_notification(ticket) ⇒ Object



3
4
5
6
7
# File 'app/mailers/helpdesk/notifications_mailer.rb', line 3

def ticket_created_notification(ticket)
  @ticket = ticket
  mail(:subject=>"#{Helpdesk.helpdesk_name} | #{ticket.subject}",
       :to => Helpdesk.email)
end