1. To enable email feature, the latest Appinstance Broker must be deployed on the server where your job will be running.
Deploy from (\\10.50.3.51\ftp\Production_Release\AppInstanceBroker) into C:\Apps folder on the local machine.
Now you will receive job completion emails if configured.
2. To receive error emails please write code in the following structure:
try
{
doStuff(1);
doStuff(n);
}
catch (Exception ex)
{
Console.Error.WriteLine(ex.Message);
}