Remove hardcoded default email sender

And make it configurable via `action_mailer_default_from` config.

Closes #243
This commit is contained in:
Artur Beljajev 2019-04-13 17:05:35 +03:00
parent 6a61d7de5b
commit a113d75ec5
5 changed files with 21 additions and 1 deletions

View file

@ -1,6 +1,5 @@
class ApplicationMailer < ActionMailer::Base
append_view_path Rails.root.join('app', 'views', 'mailers')
default from: 'noreply@internet.ee'
layout 'mailer'
# turn on delivery on specific (epp) request only, thus rake tasks does not deliver anything