Aggiunge il rilevamento di invio e apertura delle email di campagna.
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user