summaryrefslogtreecommitdiff
path: root/app/views/email_rejection_mailer
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-08-19 11:10:21 -0700
committerDouwe Maan <douwe@gitlab.com>2015-08-19 11:10:21 -0700
commit76dbafba86dda96b7ba2f93fc7e07eea3ca48302 (patch)
treea656779e1819fa65db805b6be09c9e009f2f92ea /app/views/email_rejection_mailer
parent170aa3b43b5186f73b149eae6b80b96a9b1171b2 (diff)
downloadgitlab-ce-76dbafba86dda96b7ba2f93fc7e07eea3ca48302.tar.gz
Send a rejection email when the incoming email couldn't be processed.
Diffstat (limited to 'app/views/email_rejection_mailer')
-rw-r--r--app/views/email_rejection_mailer/rejection.html.haml5
-rw-r--r--app/views/email_rejection_mailer/rejection.text.haml4
2 files changed, 9 insertions, 0 deletions
diff --git a/app/views/email_rejection_mailer/rejection.html.haml b/app/views/email_rejection_mailer/rejection.html.haml
new file mode 100644
index 00000000000..de29d399d32
--- /dev/null
+++ b/app/views/email_rejection_mailer/rejection.html.haml
@@ -0,0 +1,5 @@
+%p
+ Unfortunately, your email message to GitLab could not be processed.
+
+%p
+ = gfm @reason
diff --git a/app/views/email_rejection_mailer/rejection.text.haml b/app/views/email_rejection_mailer/rejection.text.haml
new file mode 100644
index 00000000000..6693e6f90e8
--- /dev/null
+++ b/app/views/email_rejection_mailer/rejection.text.haml
@@ -0,0 +1,4 @@
+Unfortunately, your email message to GitLab could not be processed.
+
+
+= @reason