Skip to content

Commit

Permalink
Merge pull request #218 from silinternational/develop
Browse files Browse the repository at this point in the history
add MAILER_FROM_EMAIL to mailer configuration
  • Loading branch information
briskt authored Jun 13, 2024
2 parents bec0cc5 + c517415 commit 2785d74
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 @@ -14,6 +14,7 @@
$mailerHostname = Env::get('MAILER_HOSTNAME', 'smtp.gmail.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.
$mailerFromEmail = Env::get('MAILER_FROM_EMAIL', $mailerUsername);
$appEnv = Env::get('APPLICATION_ENV', 'not set');

// APP_NAME is deprecated. Prefer APP_DISPLAY_NAME.
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 2785d74

Please sign in to comment.