Update mail.php

Adding compatibility with Google Workspaces SMTP Relay. 
More info can be found here: https://support.google.com/a/answer/2956491
This commit is contained in:
Trankten 2022-12-28 11:24:48 +01:00 committed by GitHub
parent bb2ade45ce
commit 3543d7c33d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 1 deletions

View File

@ -85,8 +85,21 @@ return [
*/
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
/*
|--------------------------------------------------------------------------
| SMTP EHLO Domain
|--------------------------------------------------------------------------
|
| Some SMTP servers require to present a known domain in order to
| allow sending through its relay. (ie: Google Workspace)
| This will use the MAIL_SMTP_EHLO env variable to avoid the 421 error
| if not present by authenticating the sender domain instead the host.
|
*/
'local_domain' => ENV('MAIL_SMTP_EHLO'),
/*
|--------------------------------------------------------------------------