update mail configuration file

This commit is contained in:
Taylor Otwell 2020-01-08 17:01:42 -06:00
parent 7e5a915485
commit 76d822768d
2 changed files with 93 additions and 72 deletions

View File

@ -23,7 +23,8 @@ REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null REDIS_PASSWORD=null
REDIS_PORT=6379 REDIS_PORT=6379
MAIL_DRIVER=smtp MAIL_MAILER=smtp
MAIL_TRANSPORT=smtp
MAIL_HOST=smtp.mailtrap.io MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525 MAIL_PORT=2525
MAIL_USERNAME=null MAIL_USERNAME=null

View File

@ -4,19 +4,36 @@
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Mail Driver | Default Mailer
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| Laravel supports both SMTP and PHP's "mail" function as drivers for the | This option controls the default mailer that is used to send any email
| sending of e-mail. You may specify which one you're using throughout | messages sent by your application. Alternative mailers may be setup
| your application here. By default, Laravel is setup for SMTP mail. | and used as needed; however, this mailer will be used by default.
|
*/
'default' => env('MAIL_MAILER', 'smtp'),
'mailers' => [
'smtp' => [
/*
|--------------------------------------------------------------------------
| Mail Transport Driver
|--------------------------------------------------------------------------
|
| Laravel supports a variety of mail "transport" drivers to be used while
| sending an e-mail. You will specify which one you are using for this
| mailer here. The mailer is configured to send via SMTP by default.
| |
| Supported: "smtp", "sendmail", "mailgun", "ses", | Supported: "smtp", "sendmail", "mailgun", "ses",
| "postmark", "log", "array" | "postmark", "log", "array"
| |
*/ */
'driver' => env('MAIL_DRIVER', 'smtp'), 'transport' => env('MAIL_TRANSPORT', 'smtp'),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -36,7 +53,7 @@
| SMTP Host Port | SMTP Host Port
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| This is the SMTP port used by your application to deliver e-mails to | This is the SMTP port used by this mailer when delivering e-mails to
| users of the application. Like the host we have set this value to | users of the application. Like the host we have set this value to
| stay compatible with the Mailgun e-mail application by default. | stay compatible with the Mailgun e-mail application by default.
| |
@ -51,7 +68,7 @@
| |
| You may wish for all e-mails sent by your application to be sent from | You may wish for all e-mails sent by your application to be sent from
| the same address. Here, you may specify a name and address that is | the same address. Here, you may specify a name and address that is
| used globally for all e-mails that are sent by your application. | used globally for all e-mails that are sent through this mailer.
| |
*/ */
@ -66,7 +83,7 @@
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| Here you may specify the encryption protocol that should be used when | Here you may specify the encryption protocol that should be used when
| the application send e-mail messages. A sensible default using the | the mailer sends any e-mail messages. A sensible default using the
| transport layer security protocol should provide great security. | transport layer security protocol should provide great security.
| |
*/ */
@ -88,6 +105,9 @@
'password' => env('MAIL_PASSWORD'), 'password' => env('MAIL_PASSWORD'),
],
],
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Sendmail System Path | Sendmail System Path