Skip to main content
Level 3
Sep 11, 2021 11:48 AM UTC
Solved

Let an email script fail to prevent an email send

Hi,

I am using a trigger-based smart campaign to send an email. And I'd like to check upon email rendering, not in the smart list, if certain prerequisite are available in a specific way, and, if not, let the email send fail. I think I recall that an error during velocity parsing results in a sort of soft bounce/fail for the email send. How would I provoke that in practice? I.e., as strange as it might sound, I am looking for a code example in the veins of:

 

#if( ... ) Provoke velocity error/bounce #end

 

TY.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Sep 11, 2021 7:42 PM UTC
#macro( throw ) #set( $zeroLengthList = [] ) ${zeroLengthList[0]} #end

 

1 reply

SanfordWhiteman
User Group Leader
SanfordWhitemanUser Group LeaderAccepted solution
User Group Leader
Sep 11, 2021 7:42 PM UTC
#macro( throw ) #set( $zeroLengthList = [] ) ${zeroLengthList[0]} #end

 

Translate