Skip to content

Commit

Permalink
updated user_mailer to default to the do-not-reply email by default
Browse files Browse the repository at this point in the history
  • Loading branch information
briri committed Mar 12, 2021
1 parent 87c6648 commit fbb0526
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/mailers/user_mailer.rb
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ class UserMailer < ActionMailer::Base
helper MailerHelper
helper FeedbacksHelper

default from: Rails.configuration.x.organisation.email
default from: Rails.configuration.x.organisation.do_not_reply_email || Rails.configuration.x.organisation.email

def welcome_notification(user)
@user = user
@@ -108,6 +108,7 @@ def feedback_notification(recipient, plan, requestor)

I18n.with_locale I18n.default_locale do
mail(to: @recipient.email,
from: Rails.
subject: _("%{tool_name}: %{user_name} requested feedback on a plan") %
{
tool_name: tool_name, user_name: @user.name(false)

0 comments on commit fbb0526

Please sign in to comment.