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



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

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



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

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



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

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



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

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

#send_activate_subscription(subscriber) ⇒ Object



42
43
44
45
46
# File 'app/mailers/helpdesk/notifications_mailer.rb', line 42

def send_activate_subscription(subscriber)
  @subscriber = subscriber
  mail(:subject=>"#{t('helpdesk.name')}: Please Confirm Subscription",
       :to => @subscriber.email)
end

#ticket_created_confirmation(ticket) ⇒ Object



11
12
13
14
15
# File 'app/mailers/helpdesk/notifications_mailer.rb', line 11

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

#ticket_created_notification(ticket) ⇒ Object



5
6
7
8
9
# File 'app/mailers/helpdesk/notifications_mailer.rb', line 5

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