Ensure that unsubscribe link is always saved before sending

[MAILPOET-2245]
This commit is contained in:
Rostislav Wolny
2019-09-30 15:38:08 +02:00
committed by Jack Kitterhing
parent 028c5e6de5
commit 44c6e5db91
2 changed files with 16 additions and 0 deletions

View File

@ -23,6 +23,7 @@ class Links {
// join HTML and TEXT rendered body into a text string
$content = Helpers::joinObject($rendered_newsletter);
list($content, $links) = NewsletterLinks::process($content, $newsletter_id, $queue_id);
$links = NewsletterLinks::ensureUnsubscribeLink($links);
// split the processed body with hashed links back to HTML and TEXT
list($rendered_newsletter['html'], $rendered_newsletter['text'])
= Helpers::splitObject($content);