Module: Emails::ServiceDesk
- Extended by:
- ActiveSupport::Concern
- Includes:
- MarkupHelper
- Included in:
- Notify
- Defined in:
- app/mailers/emails/service_desk.rb
Instance Method Summary
collapse
#asciidoc?, #cross_project_reference, #first_line_in_markdown, #gitlab_markdown?, #link_to_html, #link_to_markdown, #link_to_markdown_field, #markdown, #markdown_field, #markup, #markup?, #markup_unsafe, #plain?, #render_wiki_content
Instance Method Details
#service_desk_new_note_email(issue_id, note_id, recipient) ⇒ Object
26
27
28
29
30
31
32
33
34
35
|
# File 'app/mailers/emails/service_desk.rb', line 26
def service_desk_new_note_email(issue_id, note_id, recipient)
@note = Note.find(note_id)
setup_service_desk_mail(issue_id)
email_sender = sender(@note.author_id)
options = service_desk_options(email_sender, 'new_note', recipient)
.merge(subject: subject_base)
mail_answer_thread(@issue, options)
end
|
#service_desk_thank_you_email(issue_id) ⇒ Object
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'app/mailers/emails/service_desk.rb', line 12
def service_desk_thank_you_email(issue_id)
setup_service_desk_mail(issue_id)
email_sender = sender(
@support_bot.id,
send_from_user_email: false,
sender_name: @project.service_desk_setting&.outgoing_name
)
options = service_desk_options(email_sender, 'thank_you', @issue.external_author)
.merge(subject: "Re: #{subject_base}")
mail_new_thread(@issue, options)
end
|