Wednesday, December 5, 2012

How to solve this error Bad sequence of commands. The server response was: This mail server requires authentication

Server Error in '/' Application.


Bad sequence of commands. The server response was: This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.Mail.SmtpException: Bad sequence of commands. The server response was: This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server.

Source Error: 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 

[SmtpException: Bad sequence of commands. The server response was: This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server.]
   System.Net.Mail.RecipientCommand.CheckResponse(SmtpStatusCode statusCode, String response) +1066623
   System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception) +241
   System.Net.Mail.SmtpClient.Send(MailMessage message) +1480
   Contactus.SendSimpleEmail(String toAddressList, String subject, String emailBody, Boolean isHTML) +103

[Exception: Error sending email from admin@aspdotnet-rajkumar.in]
   Contactus.SendSimpleEmail(String toAddressList, String subject, String emailBody, Boolean isHTML) +161
   Contactus.Sendadminmail(String name, String email, String Mobile) +222
   Contactus.Submit_Click1(Object sender, EventArgs e) +83
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565



Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5456

4 comments:

  1. This post will assist the internet visitors for creating new weblog or
    even a weblog from start to end.

    Also visit my blog post; biedermeier-empire.de/

    ReplyDelete
  2. I am also commenting to make you understand of the impressive discovery
    my cousin's princess obtained using yuor web blog. She learned plenty of pieces, not to mention what it's like to possess an awesome teaching spirit to let
    a number of people very easily thoroughly grasp a variety
    of complex matters. You actually surpassed her expected results.
    Thanks for offering the warm and helpful, dependable, revealing and easy tips
    about this topic to Sandra.

    Here is my web page; entkoppeln

    ReplyDelete
  3. I wanted to compose a quick word so as to appreciate you for
    some of the amazing concepts you are placing on this site.
    My extensive internet look up has now been rewarded with high-quality details to go over with my best friends.

    I would express that we readers are rather endowed to dwell in a magnificent place with very
    many perfect people with very beneficial suggestions.
    I feel truly fortunate to have discovered
    the web page and look forward to plenty of more thrilling times reading here.
    Thanks once again for everything.

    my site ... schnippisch (aeev.at)

    ReplyDelete
  4. Nice post. I was checking constantly this blog and I'm impressed! Very helpful info specially the last part :) I care for such information a lot. I was seeking this particular info for a long time. Thank you and good luck.

    Also visit my site strompreisvergleich

    ReplyDelete