✉ — Allow to use sendmail

This commit is contained in:
Luc Didry 2023-09-12 12:17:12 +02:00
parent 74460ad378
commit 72da6dce07
No known key found for this signature in database
GPG Key ID: EA868E12D0257E3C
2 changed files with 11 additions and 1 deletions

4
.env
View File

@ -52,7 +52,7 @@ MAINTENANCE_MODE=false
DB_CONNECTION=sqlite DB_CONNECTION=sqlite
#Mail Settings=LinkStack comes with a free to use built-in SMTP server for sending mail. You can leave this setting as is, if you wish to use this service please read our terms and conditions at llc-mail.tru.io. If you do not wish to use the built-in SMTP server, change the setting below. #Mail Settings=LinkStack comes with a free to use built-in SMTP server for sending mail. You can leave this setting as is, if you wish to use this service please read our terms and conditions at llc-mail.tru.io. If you do not wish to use the built-in SMTP server, change the setting below.
#=MAIL_MAILER either smtp or built-in. Make sure to change this setting if you want to add a custom SMTP server. #=MAIL_MAILER either smtp, sendmail or built-in. Make sure to change this setting if you want to add a custom SMTP server or use sendmail.
MAIL_MAILER=built-in MAIL_MAILER=built-in
MAIL_HOST= MAIL_HOST=
MAIL_PORT= MAIL_PORT=
@ -61,6 +61,8 @@ MAIL_PASSWORD=
MAIL_ENCRYPTION= MAIL_ENCRYPTION=
MAIL_FROM_ADDRESS= MAIL_FROM_ADDRESS=
MAIL_FROM_NAME="${APP_NAME}" MAIL_FROM_NAME="${APP_NAME}"
#= Set the path to sendmail binary and set options. Default is /usr/sbin/sendmail -bs
MAIL_SENDMAIL=
#Cache Settings=Completely optional. #Cache Settings=Completely optional.
MEMCACHED_HOST=127.0.0.1 MEMCACHED_HOST=127.0.0.1

View File

@ -34,6 +34,14 @@ return [
*/ */
'mailers' => [ 'mailers' => [
'sendmail' => [
'transport' => 'sendmail',
'path' => env('MAIL_SENDMAIL', '/usr/sbin/sendmail -bs'),
'from' => [
'address' => env('MAIL_FROM_ADDRESS'),
'name' => env('MAIL_FROM_NAME'),
]
],
'smtp' => [ 'smtp' => [
'transport' => 'smtp', 'transport' => 'smtp',
'host' => env('MAIL_HOST'), 'host' => env('MAIL_HOST'),