Skip to content

Commit 6a30f7d

Browse files
KnerioTaucher2003
andauthored
Apply suggestions from code review
Co-authored-by: Niklas van Schrick <mc.taucher2003@gmail.com>
1 parent dabeeb5 commit 6a30f7d

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

app/mailers/application_mailer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
class ApplicationMailer < ActionMailer::Base
4-
default from: Sagittarius::Configuration.config[:rails][:mailer][:username]
4+
default from: Sagittarius::Configuration.config[:rails][:mailer][:from]
55
layout 'mailer'
66

77
def test_mail

config/sagittarius.example.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ rails:
22
threads: 3
33
log_level: info
44
mailer:
5+
from: Code0 <testmail@code0.tech>
56
address: smtp.example.com
67
port: 587
78
domain: code0.tech

lib/sagittarius/configuration.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def self.defaults
2727
},
2828
log_level: 'info',
2929
mailer: {
30+
from: 'Code0 <testmail@code0.tech>',
3031
address: 'smtp.example.com',
3132
port: 587,
3233
domain: 'code0.tech',

0 commit comments

Comments
 (0)