mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-11-07 01:09:21 +00:00
[Web] Archive settings, domain and mailbox switches, archive log and API
This commit is contained in:
25 files changed
+834
-12
No files matched your search
@@ -539,6 +539,7 @@ function sys_mail($_data) {
|
||||
$mail->Body = $mass_text;
|
||||
}
|
||||
$mail->XMailer = 'MooMassMail';
|
||||
$archive = \Mailcow\Archive\ArchiveModule::fromGlobals();
|
||||
foreach ($rcpts as $rcpt) {
|
||||
$mail->AddAddress($rcpt);
|
||||
if (!$mail->send()) {
|
||||
@@ -548,6 +549,10 @@ function sys_mail($_data) {
|
||||
'msg' => 'Mailer error (RCPT "' . htmlspecialchars($rcpt) . '"): ' . str_replace('https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting', '', $mail->ErrorInfo)
|
||||
);
|
||||
}
|
||||
else {
|
||||
// Delivered by LMTP without rspamd, so the archive gets it here
|
||||
$archive->journal->submitDelivered($mail->getSentMIMEMessage(), $mass_from, array($rcpt), 'massmail');
|
||||
}
|
||||
$mail->ClearAllRecipients();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user