Hi,
About your question "if i want to disable antivirus throw programmatically in asp.net C# then is it possible?"
Yes possible if you have sufficient privileges
if you are using any anti-virus, they use Windows service to process on virus or any other activity(like email sending in your case).
you need to stop this service then your anti-virus will also disabled.
using (ServiceController controller = new ServiceController("YourServiceName", "YourMachineName"))
{
if (controller.Status != ServiceControllerStatus.Stopped)
{
controller.Stop();
controller.WaitForStatus(ServiceControllerStatus.Stopped);
}
}
Hope this will help you,
Thanks
-amit.