Jump to content

Unsubscribe link not working when using SendGrid for bulkmails


Recommended Posts

Dear IPS support,

there is a bug in the bulkmail logic when using SendGrid as external provider.

The unsubscribe link in the send email is not valid. The reason for that is the "ClickTracking" logic.

What's happening:

applications/core/extensions/core/Queue/Bulkmail.php => function "run" calls "mergeAndSend" in SendGrid implementation.

Could contain: Page, Text

 

The mergeAndSend calls "compileContent" with member-parameter FALSE

Could contain: Text

 

"compileContent" creates the mail content, including the unsubscribe link.

Could contain: Page, Text, File, Webpage

 

Later in the code/function the "ClickTracking" is added.
IMPORTANT HINT: The place holders for email and unsubscribe key are not yet substituded in href.

Could contain: Page, Text, File, Webpage

 

The "ClickTracking" logic adds an hash value based on the email and unsubscribe key (not yet set).

Could contain: Page, Text, File

 

Back in "mergeAndSend" the placeholders are substituded in the content.

Could contain: Page, Text, File, Webpage

 

The substituion is to late for the hash calculation in the ClickTracking function during content creation.

 

As consequence, the unsubscribe link in the email is invalid because of the invalid hash value!
Currently, we have multiple support requests because of this issue.

This happens only when using SendGrid, the "normal" Email logic is working correctly.


The bug invesitgation is done from my end, now it's your turn to fix this bug as soon as possible. 🙂 

 

Hint:
There is no need for access to my communitiy suite. The isse can be reproduced in every dev-environment, once SendGrid is activated and you try to send a bulk.

 

Edited by derpunker
Link to comment
Share on other sites

Thank you for bringing this issue to our attention! I can confirm this should be further reviewed and I have logged an internal bug report for our development team to investigate and address as necessary, in a future maintenance release.

 

Link to comment
Share on other sites

  • 2 weeks later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...