From c14fc1ccb0c941f6f2c2204cb3607390fdae821d Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Mon, 12 Dec 2022 14:26:07 -0700 Subject: [PATCH] config(mail): fix SERVER_NAME; closes #4600 --- .env.example | 2 +- config/mail.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index b852f8d86..533799999 100644 --- a/.env.example +++ b/.env.example @@ -41,4 +41,4 @@ MAIL_FROM_NAME="Pterodactyl Panel" # mail servers such as Gmail to reject your mail. # # @see: https://github.com/pterodactyl/panel/pull/3110 -# SERVER_NAME=panel.example.com +# MAIL_EHLO_DOMAIN=panel.example.com diff --git a/config/mail.php b/config/mail.php index 95c6f303c..ee612fdcc 100644 --- a/config/mail.php +++ b/config/mail.php @@ -41,7 +41,7 @@ return [ 'username' => env('MAIL_USERNAME'), 'password' => env('MAIL_PASSWORD'), 'timeout' => null, - 'local_domain' => env('MAIL_EHLO_DOMAIN'), + 'local_domain' => env('MAIL_EHLO_DOMAIN', env('SERVER_NAME')), ], 'ses' => [