Skip to content

Commit

Permalink
add MAILER_FROM_EMAIL to mailer configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt authored Jun 13, 2024
1 parent e6b04b9 commit 13fc97b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/protected/config/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -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', '[email protected]');
$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');
Expand Down Expand Up @@ -212,7 +213,7 @@
'smtp' => array(
'host' => $mailerHostname,
'port' => 465,
'fromEmail' => $mailerUsername,
'fromEmail' => $mailerFromEmail,
'fromName' => 'API Admin (no-reply)',
'auth' => true,
'secure' => 'ssl',
Expand Down

0 comments on commit 13fc97b

Please sign in to comment.