From 13fc97b2f2e726192c6f018e3d11b4b7a49455dc Mon Sep 17 00:00:00 2001 From: briskt <3172830+briskt@users.noreply.github.com> Date: Thu, 13 Jun 2024 11:24:51 +0800 Subject: [PATCH] add MAILER_FROM_EMAIL to mailer configuration --- application/protected/config/main.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/protected/config/main.php b/application/protected/config/main.php index fcd2bde..7c223ed 100644 --- a/application/protected/config/main.php +++ b/application/protected/config/main.php @@ -12,6 +12,7 @@ $mysqlUser = Env::get('MYSQL_USER'); $mysqlPassword = Env::get('MYSQL_PASSWORD'); $mailerHostname = Env::get('MAILER_HOSTNAME', 'smtp.gmail.com'); +$mailerFromEmail = Env::get('MAILER_FROM_EMAIL', 'no_reply@example.com'); $mailerUsername = Env::get('MAILER_USERNAME', false); // Defaults to false to mimic previous getenv() behavior. $mailerPassword = Env::get('MAILER_PASSWORD', false); // Defaults to false to mimic previous getenv() behavior. $appEnv = Env::get('APPLICATION_ENV', 'not set'); @@ -212,7 +213,7 @@ 'smtp' => array( 'host' => $mailerHostname, 'port' => 465, - 'fromEmail' => $mailerUsername, + 'fromEmail' => $mailerFromEmail, 'fromName' => 'API Admin (no-reply)', 'auth' => true, 'secure' => 'ssl',