Views:

Overview

 

Basically 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 Sub Signatures:


 

Each of the Above Sub signatures

 

RAND-Generate

 

NOTE: Please update this line int iRand = rnd.Next(1, 3); for the number of sub signatures e.g. 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 MSE v4