Programmatically Block Outbound Emails

Source

the main point:

if (context.MessageName.Equals(“Send”, StringComparison.InvariantCultureIgnoreCase))
{
context.InputParameters[“IssueSend”] = false;
}

Leave a comment