Skip to content

Firefly III: a personal finances manager

Better defaults for email.

James Cole7f6d2877fb64
diff --git a/config/mail.php b/config/mail.php
index eae17fd2a7..5a83a2ae08 100644
--- a/config/mail.php
+++ b/config/mail.php
@@ -38,11 +38,11 @@ return [
'mailers' => [
'smtp' => [
'transport' => 'smtp',
- 'host' => env('MAIL_HOST', 'smtp.mailtrap.io'),
+ 'host' => envNonEmpty('MAIL_HOST', 'smtp.mailtrap.io'),
'port' => (int)env('MAIL_PORT', 2525),
- 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
- 'username' => env('MAIL_USERNAME'),
- 'password' => env('MAIL_PASSWORD'),
+ 'encryption' => envNonEmpty('MAIL_ENCRYPTION', 'tls'),
+ 'username' => envNonEmpty('MAIL_USERNAME','[email protected]'),
+ 'password' => envNonEmpty('MAIL_PASSWORD','password'),
'timeout' => null,
'verify_peer' => null !== env('MAIL_ENCRYPTION'),
],
@@ -72,6 +72,11 @@ return [
'channel' => env('MAIL_LOG_CHANNEL', 'stack'),
'level' => 'notice',
],
+ 'null' => [
+ 'transport' => 'log',
+ 'channel' => env('MAIL_LOG_CHANNEL', 'stack'),
+ 'level' => 'notice',
+ ],
'array' => [
'transport' => 'array',