Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@gitlab.com>2014-12-05 13:19:10 +0300
committerDmitriy Zaporozhets <dzaporozhets@gitlab.com>2014-12-05 13:19:10 +0300
commite6c5a8b161c89a03ca5ee6666f65cf4cfbfa4ab9 (patch)
treea038e35744c8adaa8d01eb3b623a2e8f7efcb50d /app
parent9ce9814ee3281be0e7cfa4653480284e4fe3eb9f (diff)
parentcdc62cffcb86dfd939c119cba2acaf266af39f23 (diff)
Merge branch 'rake_task_for_google_email_schema_verfication' into 'master'
Rake task for google email schema verfication #1607 See merge request !1300
Diffstat (limited to 'app')
-rw-r--r--app/mailers/notify.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb
index 0ee19836627..6d671e6e0bd 100644
--- a/app/mailers/notify.rb
+++ b/app/mailers/notify.rb
@@ -26,6 +26,14 @@ class Notify < ActionMailer::Base
delay_for(2.seconds)
end
+ def test_email(recepient_email, subject, body)
+ mail(to: recepient_email,
+ subject: subject,
+ body: body.html_safe,
+ content_type: 'text/html'
+ )
+ end
+
private
# The default email address to send emails from