Skip to content

Commit

Permalink
Merge branch 'hotfix/updated-default-mailer'
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilgkrishnan committed May 10, 2022
2 parents d1f1ea5 + 0682608 commit b350cb6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion app/mailers/application_mailer.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

class ApplicationMailer < ActionMailer::Base
default from: "from@example.com"
default from: ENV["MAILER_SENDER"]
layout "mailer"
end
1 change: 0 additions & 1 deletion spec/mailers/invoice_mailer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
it "renders the headers" do
expect(mail.subject).to eq(subject)
expect(mail.to).to eq(recipients)
expect(mail.from).to eq(["from@example.com"])
end

it "renders the body" do
Expand Down

0 comments on commit b350cb6

Please sign in to comment.