Changed mail footer to public url.

This commit is contained in:
Thomas Ulsø Kristensen 2022-06-16 13:26:14 +02:00
parent 2c32c4adee
commit d56b2856e5
1 changed files with 3 additions and 1 deletions

View File

@ -424,10 +424,12 @@ class StatusNotifier
psm_parse_msg($this->status_new, 'email_subject', $this->server);
$mail->Priority = 1;
$publicUrl = PSM_BASE_URL.'/public.php';
$body = key_exists('message', $combi) ?
$combi['message'] :
psm_parse_msg($this->status_new, 'email_body', $this->server);
if ((bool)psm_get_conf('email_add_url')) $body .= PHP_EOL.PHP_EOL.'<a href="'.PSM_BASE_URL.'">'.PSM_BASE_URL.'</a>';
if ((bool)psm_get_conf('email_add_url')) $body .= PHP_EOL.PHP_EOL.'<a href="'.$publicUrl.'">'.$publicUrl.'</a>';
$mail->Body = $body;
$mail->AltBody = str_replace('<br/>', "\n", $body);