static string GetNotifyString (DeliveryStatusNotification notify)
{
string value = string.Empty;
if (notify == DeliveryStatusNotification.Never)
return "NEVER";
if ((notify & DeliveryStatusNotification.Success) != 0)
value += "SUCCESS,";
if ((notify & DeliveryStatusNotification.Failure) != 0)
value += "FAILURE,";
if ((notify & DeliveryStatusNotification.Delay) != 0)
value += "DELAY";
return value.TrimEnd (',');
}