mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
smtp: add notify_email field; fix admin notification sent to no-reply sender
This commit is contained in:
@@ -188,9 +188,9 @@ try {
|
||||
);
|
||||
$plain = htmlToPlain($body);
|
||||
|
||||
$settings = SmtpRelay::getSettings($db);
|
||||
if (!empty($settings['from_email'])) {
|
||||
SmtpRelay::send($db, $settings['from_email'], $subject, $body, $plain);
|
||||
$notifyEmail = SmtpRelay::getNotifyEmail($db);
|
||||
if ($notifyEmail !== '') {
|
||||
SmtpRelay::send($db, $notifyEmail, $subject, $body, $plain);
|
||||
}
|
||||
|
||||
http_response_code(200);
|
||||
|
||||
Reference in New Issue
Block a user