Fix EHLO domain for Versio Exim anti-spoofing and upgrade test email to formatted HTML
This commit is contained in:
+8
-1
@@ -47,7 +47,14 @@ return [
|
||||
'username' => env('MAIL_USERNAME'),
|
||||
'password' => env('MAIL_PASSWORD'),
|
||||
'timeout' => null,
|
||||
'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url((string) env('APP_URL', 'http://localhost'), PHP_URL_HOST)),
|
||||
'local_domain' => env('MAIL_EHLO_DOMAIN', (function () {
|
||||
$host = parse_url((string) env('APP_URL', 'http://localhost'), PHP_URL_HOST);
|
||||
if (! $host || $host === 'localhost' || $host === '127.0.0.1') {
|
||||
return null;
|
||||
}
|
||||
|
||||
return str_starts_with($host, 'mail.') ? $host : 'mail.'.$host;
|
||||
})()),
|
||||
],
|
||||
|
||||
'ses' => [
|
||||
|
||||
Reference in New Issue
Block a user