diff options
author | Stuart Nelson <stuartnelson3@gmail.com> | 2018-02-06 21:09:59 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2018-03-26 10:10:19 +0300 |
commit | 5f39f9b30853291ec83df2383cd2e7863b72fb27 (patch) | |
tree | ba59e062a442f0e796a25d176a6774efd1983cde /app/mailers/emails/issues.rb | |
parent | bebced8fc9039c5e8a3774af183a8dd9c244f297 (diff) |
Send email to recipients
Diffstat (limited to 'app/mailers/emails/issues.rb')
-rw-r--r-- | app/mailers/emails/issues.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/mailers/emails/issues.rb b/app/mailers/emails/issues.rb index b33131becd3..392cc0bee03 100644 --- a/app/mailers/emails/issues.rb +++ b/app/mailers/emails/issues.rb @@ -6,6 +6,12 @@ module Emails mail_new_thread(@issue, issue_thread_options(@issue.author_id, recipient_id, reason)) end + def issue_due_email(recipient_id, issue_id, reason = nil) + setup_issue_mail(issue_id, recipient_id) + + mail_new_thread(@issue, issue_thread_options(@issue.author_id, recipient_id, reason)) + end + def new_mention_in_issue_email(recipient_id, issue_id, updated_by_user_id, reason = nil) setup_issue_mail(issue_id, recipient_id) mail_answer_thread(@issue, issue_thread_options(updated_by_user_id, recipient_id, reason)) |