Skip to content

Commit

Permalink
Merge pull request #616 from Mainfrezzer/master
Browse files Browse the repository at this point in the history
Add an app_email option to the config
  • Loading branch information
sergix44 authored Jan 17, 2025
2 parents bf89b09 + 8a468f0 commit c6ff921
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,13 @@ function dsnFromConfig(array $config): string
*/
function platform_mail($mailbox = 'no-reply'): string
{
$app_email = resolve('config')['app_email'];

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

Expand Down

0 comments on commit c6ff921

Please sign in to comment.