Make typology unsubscription link control rule stop send

Avatar

Avatar

michellelowsl

Avatar

michellelowsl

michellelowsl

13-05-2020

Hi,

 

At the moment the default control rule only checks if the unsubscription link exists and then gives a warning in the log but user can still send the delivery.

Is there a way to modify this and stop the send completely like the subject line control rule?

 

Thanks!

Typology rules

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

ramon_bisswange

Employee

Avatar

ramon_bisswange

Employee

ramon_bisswange
Employee

15-05-2020

You can duplicate the typology rule which comes with ACS.

Then replace logWarning by logError in the code

Answers (2)

Answers (2)

Avatar

Avatar

raj_mandalapu

MVP

Avatar

raj_mandalapu

MVP

raj_mandalapu
MVP

16-05-2020

As Ramon mentioned, you can duplicate check unsubscription control rule and change logWarning link to logError

 if (delivery.content.email.length > 1) {
logWarning(sg.missingOptoutTextMultivariant(emailContent.variant));
}
else {
logError(sg.missingOptoutText());
}

  

Avatar

Avatar

ramon_bisswange

Employee

Avatar

ramon_bisswange

Employee

ramon_bisswange
Employee

15-05-2020

...