Skip to content

Commit 72da6dc

Browse files
committed
✨✉ — Allow to use sendmail
1 parent 74460ad commit 72da6dc

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.env

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ MAINTENANCE_MODE=false
5252
DB_CONNECTION=sqlite
5353

5454
#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.
55-
#=MAIL_MAILER either smtp or built-in. Make sure to change this setting if you want to add a custom SMTP server.
55+
#=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.
5656
MAIL_MAILER=built-in
5757
MAIL_HOST=
5858
MAIL_PORT=
@@ -61,6 +61,8 @@ MAIL_PASSWORD=
6161
MAIL_ENCRYPTION=
6262
MAIL_FROM_ADDRESS=
6363
MAIL_FROM_NAME="${APP_NAME}"
64+
#= Set the path to sendmail binary and set options. Default is /usr/sbin/sendmail -bs
65+
MAIL_SENDMAIL=
6466

6567
#Cache Settings=Completely optional.
6668
MEMCACHED_HOST=127.0.0.1

config/mail.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@
3434
*/
3535

3636
'mailers' => [
37+
'sendmail' => [
38+
'transport' => 'sendmail',
39+
'path' => env('MAIL_SENDMAIL', '/usr/sbin/sendmail -bs'),
40+
'from' => [
41+
'address' => env('MAIL_FROM_ADDRESS'),
42+
'name' => env('MAIL_FROM_NAME'),
43+
]
44+
],
3745
'smtp' => [
3846
'transport' => 'smtp',
3947
'host' => env('MAIL_HOST'),

0 commit comments

Comments
 (0)