1
0
Fork 0
mirror of synced 2024-10-03 10:46:27 +13:00

formatting

This commit is contained in:
Damodar Lohani 2023-06-05 07:11:53 +00:00
parent fcf558b58b
commit f373d30a45

View file

@ -1646,7 +1646,7 @@ App::patch('/v1/projects/:projectId/smtp')
$mail->SMTPAutoTLS = false;
$valid = $mail->SmtpConnect();
if(!$valid) {
if (!$valid) {
throw new Exception(Exception::GENERAL_SMTP_DISABLED);
}
@ -1745,7 +1745,7 @@ App::get('/v1/projects/:projectId/templates/email/:type/:locale')
->setParam('{{text-content}}', '#000000')
->render();
$from = $project->isEmpty() || $project->getId() === 'console' ? '' : \sprintf($localeObj->getText('emails.sender'), $project->getAttribute('name'));
$from = $project->isEmpty() || $project->getId() === 'console' ? '' : \sprintf($localeObj->getText('emails.sender'), $project->getAttribute('name'));
$from = empty($from) ? \urldecode(App::getEnv('_APP_SYSTEM_EMAIL_NAME', APP_NAME . ' Server')) : $from;
$template = [
'message' => $message,