Skip to content

Commit

Permalink
Fix mail retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
sergix44 committed Jan 18, 2025
1 parent 238ad65 commit 8e3128c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,13 @@ function dsnFromConfig(array $config): string
*/
function platform_mail($mailbox = 'no-reply'): string
{
$app_email = resolve('config')['app_email'];
$config = resolve('config');

if (!empty($app_email)) {
return $mailbox = $app_email;
} else {
return $mailbox.'@'.str_ireplace('www.', '', parse_url(resolve('config')['base_url'], PHP_URL_HOST));
if (isset($config['app_email'])) {
return $config['app_email'];
}

return $mailbox.'@'.str_ireplace('www.', '', parse_url(resolve('config')['base_url'], PHP_URL_HOST));
}
}

Expand Down

0 comments on commit 8e3128c

Please sign in to comment.