SOLVED

Let an email script fail to prevent an email send

Go to solution
lukea
Level 3

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.

Tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Let an email script fail to prevent an email send

#macro( throw )
#set( $zeroLengthList = [] )
${zeroLengthList[0]}
#end

 

View solution in original post

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

Re: Let an email script fail to prevent an email send

#macro( throw )
#set( $zeroLengthList = [] )
${zeroLengthList[0]}
#end