Aggiunge il rilevamento di invio e apertura delle email di campagna.
CI / scan_ruby (push) Failing after 12m56s
CI / scan_js (push) Successful in 12m23s
CI / lint (push) Failing after 12m15s

Ogni destinatario mostra se la mail è partita e se è stata aperta, con conteggi in dashboard.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-20 12:26:14 +02:00
co-authored by Cursor
parent ab57309f5c
commit 2db7504629
18 changed files with 332 additions and 5 deletions
+3 -1
View File
@@ -5,6 +5,8 @@ class CampaignMailer < ApplicationMailer
mailing = recipient.mailing
identity = mailing.mail_identity
html = Mailings::InlineImages.call(self, html)
html = wrap_html(html)
html = Mailings::OpenPixel.call(html, recipient)
mailing.files.each do |file|
attachments[file.filename.to_s] = {
@@ -20,7 +22,7 @@ class CampaignMailer < ApplicationMailer
subject: subject,
delivery_method_options: identity.smtp_settings
) do |format|
format.html { render html: wrap_html(html).html_safe }
format.html { render html: html.html_safe }
end
end