Views:
The signature should look like the below:



RAND-Generate: always returns false, but stamps following field onto the message header X-CWRandom with a random number
RAND-1 : subsignature which is triggered on a X-CWRandom=1
RAND-1 : subsignature which is triggered on a X-CWRandom=2

Below are the Signature blocks:



Below are Each of the Above Signature blocks with the code snippet

RAND-Generate



(See attached file: codeexample.txt)

int iRand = rnd.Next(1, 3); returns a random number between 1 and 2.

Please update this line "int iRand = rnd.Next(1, 3);" for the number of sub signatures eg if there were 6 the line should be, int iRand = rnd.Next(1, 7);

RAND-1



if (pEmailHeaders.ContainsKey("X-CWRandom"))
{
List < string > sRand=pEmailHeaders["X-CWRandom"];
int iRand = int.Parse(sRand[0]);
if (iRand == 1) return true;
}
return false;


RAND-2



if (pEmailHeaders.ContainsKey("X-CWRandom"))
{
List < string > sRand=pEmailHeaders["X-CWRandom"];
int iRand = int.Parse(sRand[0]);
if (iRand == 2) return true;
}
return false;
Related Products: CMS M365, CMS MSE v5, Designer 6 (for CMS M365)