mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-11-10 03:30:08 +01:00
smtp: add notify_email field; fix admin notification sent to no-reply sender
This commit is contained in:
1 parent
bdb68479d5
commit
33987c9b15
7 files changed
+81
-42
No files matched your search
@@ -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