Facing an issue, I noticed some cases where users are unable to unsubscribe if they have a + symbol in the email address.
Example - abc+cd@gmail.com
Does anyone have the same issue before? any idea why this is happening?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityFacing an issue, I noticed some cases where users are unable to unsubscribe if they have a + symbol in the email address.
Example - abc+cd@gmail.com
Does anyone have the same issue before? any idea why this is happening?
It happens because +
equates to a space when the email address is URL encoded.
Your custom preference center will need to be updated to replace all spaces with +
characters.
SSJS:
emailAddress = emailAddress.replace(" ","+");
AMPscript:
set @emailAddress = replace(@emailAddress," ","+")