Ensure that unsubscribe link is always saved before sending
[MAILPOET-2245]
This commit is contained in:
committed by
Jack Kitterhing
parent
028c5e6de5
commit
44c6e5db91
@ -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);
|
||||
|
Reference in New Issue
Block a user