Non tratta l'EOF SMTP come invio riuscito e toglie quei falsi errori dalla lista.
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / scan_ruby (push) Has been cancelled

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-07 12:32:18 +02:00
co-authored by Cursor
parent 238bbb0c68
commit 4cf34b2033
4 changed files with 27 additions and 6 deletions
+1
View File
@@ -91,6 +91,7 @@ class MailingRecipient < ApplicationRecord
Mailings::SmtpGate.deliver do
CampaignMailer.outreach(self, html: html, subject: subject_line).deliver_now
end
# Solo dopo deliver_now senza eccezioni: un EOF/SMTP error non è mai un invio riuscito.
record_success!(subject_line)
:sent
rescue *Mailings::SmtpGate::RETRYABLE => e