locked
Problem with password recovery tool sending email RRS feed

  • Question

  • User-1767698477 posted

    I'm trying to using this very simple control. This is supposed to work all behind the scenes with the help of mail setting in web.config.

    This is not working for me and I continue to get an annoying error message:

    Mailbox unavailable. The server response was: <XX@aol.com> No such user here

    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.SmtpFailedRecipientException: Mailbox unavailable. The server response was: <XX@aol.com> No such user here

    This message implies that the XX.aol.com is the FROM address. At least to me it does. That is the TO address.I have googled all over for this and I see others have had the same issues. I submitted a ticket to my webhost about it. I had defaultcredentials ="false" but it didn't make any difference. I get the same message about the email address.

    <center>
      <h3>Retrieve Password</h3>
    
      <asp:Label id="Msg" runat="server" ForeColor="maroon" /><br />
    
      Username: <asp:Textbox id="UsernameTextBox" Columns="30" runat="server" AutoPostBack="true" />
                <asp:RequiredFieldValidator id="UsernameRequiredValidator" runat="server"
                                            ControlToValidate="UsernameTextBox" ForeColor="red"
                                            Display="Static" ErrorMessage="Required" /><br />
    
      <asp:Button id="EmailPasswordButton" Text="Email My Password" 
                  OnClick="EmailPassword_OnClick" runat="server" Enabled="false" />
                  </center>

    [SmtpFailedRecipientException: Mailbox unavailable. The server response was: <**@aol.com> No such user here] System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception) +19077

    <system.net>
    <mailSettings>
    <smtp from="XX@XX.com">
    <network host="mail.XX.com" port="25" password="correctpw" userName="XX@XX.com" defaultCredentials="false"/>
    </smtp>
    </mailSettings>
    </system.net>

    Thursday, May 7, 2020 8:35 PM

Answers

  • User-943250815 posted

    In addition check correct port, for clients SMTP port been has changed from 25 to 587 long time ago, actually port 25 is restricted to server to server.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 8, 2020 12:20 AM

All replies

  • User475983607 posted

    The from email address does not exist on the SMTP server.   Contact your SMTP service for assistance.

    Thursday, May 7, 2020 9:48 PM
  • User-943250815 posted

    In addition check correct port, for clients SMTP port been has changed from 25 to 587 long time ago, actually port 25 is restricted to server to server.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 8, 2020 12:20 AM
  • User-1767698477 posted

    Thanks, I was able to start receiving emails from the password recovery tool. It required lots of trial and error and a support ticket at my web host. Anyone have any opinions with Smarterasp.net ?

    Saturday, May 9, 2020 8:02 PM