By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,302 Members | 3,621 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,302 IT Pros & Developers. It's quick & easy.

CreateUserWizard fails to send email with a great non-helpful error message

P: 14
Hello. Trying to use the ASP.net user functionality but it keeps failing on me. I have created a login and registration page for my site. When you fill in the registration form it should send a confirmation email with a link to activate the account. Nothing hi-tech here. However, it fails to send the email and provides the following error message:

Expand|Select|Wrap|Line Numbers
  1. Transaction failed. The server response was: sorry, the sender name and auth login doesn't coincide (#5.7.1) 
  2. 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. 
  3.  
  4. Exception Details: System.Net.Mail.SmtpException: Transaction failed. The server response was: sorry, the sender name and auth login doesn't coincide (#5.7.1)
  5.  
  6. Source Error: 
  7.  
  8. 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.  
  9.  
  10. Stack Trace: 
  11.  
  12.  
  13. [SmtpException: Transaction failed. The server response was: sorry, the sender name and auth login doesn't coincide (#5.7.1)]
  14.    System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response) +179
  15.    System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from) +70
  16.    System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception) +188
  17.    System.Net.Mail.SmtpClient.Send(MailMessage message) +2184
  18.    System.Web.UI.WebControls.LoginUtil.SendPasswordMail(String email, String userName, String password, MailDefinition mailDefinition, String defaultSubject, String defaultBody, OnSendingMailDelegate onSendingMailDelegate, OnSendMailErrorDelegate onSendMailErrorDelegate, Control owner) +482
  19.    System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +641
  20.    System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +200
  21.    System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +651
  22.    System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) +158
  23.    System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +39
  24.    System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +56
  25.    System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +107
  26.    System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +178
  27.    System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +31
  28.    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +32
  29.    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +72
  30.    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3840
  31.  
  32.  
  33.  
  34.  
  35. --------------------------------------------------------------------------------
  36. Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832 
Not very helpful to me unfortunately. Here is the web.config section for SMTP mail:

Expand|Select|Wrap|Line Numbers
  1.   <system.net>
  2.     <mailSettings>
  3.       <smtp from="myadmin@account.com" deliveryMethod="Network">
  4.         <network host="mail.account.com" port="587" defaultCredentials="false" password="myadmin" userName="myadmin@account.com" />
  5.       </smtp>
  6.     </mailSettings>
  7.   </system.net>
Tried everything and still fails. I then send a System.Net.Mail.MailMessage in the SendMailError from the .Net control and that worked perfectly using the same settings.

Any ideas?
Sep 3 '08 #1
Share this Question
Share on Google+
4 Replies


P: 14
Anyone able to help?
Sep 4 '08 #2

jhardman
Expert 2.5K+
P: 3,405
Anyone able to help?
First, this is in ASP.NET, and you've asked in the ASP forum. ASP and ASP.NET are incompatible (obviously) which is why ASP has its own forum. I'll move this to the .NET forum for you.

Second, many experts search for unanswered posts, so replying to your own thread probably hurt its chances of being answered. Instead, if you don't get an answer, try sending a PM to a forum expert asking him or her to weigh in on your thread.

Jared
Sep 4 '08 #3

Plater
Expert 5K+
P: 7,872
The error message seemed quite good to me.
It clearly says you've given the wrong username/password combination for your email account on that server.
EDIT: However, response code 571 has also been used to say the server could not find an MX record for the sending IP address and refusing as per (spam?) protocol.
Sep 4 '08 #4

P: 14
First, this is in ASP.NET, and you've asked in the ASP forum. ASP and ASP.NET are incompatible (obviously) which is why ASP has its own forum. I'll move this to the .NET forum for you.

Second, many experts search for unanswered posts, so replying to your own thread probably hurt its chances of being answered. Instead, if you don't get an answer, try sending a PM to a forum expert asking him or her to weigh in on your thread.

Jared
Sorry mate I could have sworn I said .Net forum instead of ASP. I apologise and thanks for moving it

The error message seemed quite good to me.
It clearly says you've given the wrong username/password combination for your email account on that server.
EDIT: However, response code 571 has also been used to say the server could not find an MX record for the sending IP address and refusing as per (spam?) protocol.
Queried with the host who said everything looked ok. Next time I try it works so they must have done something to the MX records. Thanks Plater that was the answer :)
Sep 5 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.