Click here to Skip to main content
15,896,727 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello There,

When I am sending mail throw SMTP server I got an error that is :
C#
"Command not implemented. The server response was: 5.5.1 Unrecognized command. j4sm2355144pbg.31".


can any one help me how can i resolve it.

Thanx In Advance.
Posted
Updated 15-Mar-12 1:03am
v2
Comments
andy(-RKO) 15-Mar-12 6:29am    
But i having one doubt if i want to disable antivirus throw programmatically in asp.net C# then is it possible?

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.

C#
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.
 
Share this answer
 
Comments
andy(-RKO) 15-Mar-12 9:12am    
Thank You Amit for your reply and i have one question can you plz tell me how i got ServiceController class?
AmitGajjar 15-Mar-12 23:56pm    
System.ServiceProcess reference required.
andy(-RKO) 16-Mar-12 1:20am    
Ok thanx amit let me check it.
andy(-RKO) 16-Mar-12 2:32am    
it shows error that "Cannot open service on computer"?
AmitGajjar 16-Mar-12 2:34am    
You need Administrative rights.
It was Avast Antivirus!
I disabled it and I could send emails again.
:-)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900