Clubsite - Forgot Password Error

Last post 09-15-2008 4:17 PM by filiflip. 2 replies.

Sort Posts:

  • Clubsite - Forgot Password Error

    09-14-2008, 12:56 AM
    • Member
      13 point Member
    • filiflip
    • Member since 08-22-2008, 8:10 PM
    • Posts 11

    I seem to get an error whenever a user puts in the answer for their secret question. This is the error i get: Any ideas?

    ---------------------------

    Server Error in '/westgate' Application.

    A from e-mail address must be specified in the From property or the system.net/mailSettings/smtp config section.

    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.Web.HttpException: A from e-mail address must be specified in the From property or the system.net/mailSettings/smtp config section.

    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:

    [HttpException (0x80004005): A from e-mail address must be specified in the From property or the system.net/mailSettings/smtp config section.]
       System.Web.UI.WebControls.MailDefinition.CreateMailMessage(String recipients, IDictionary replacements, String body, Control owner) +1417854
       System.Web.UI.WebControls.LoginUtil.CreateMailMessage(String email, String userName, String password, MailDefinition mailDefinition, String defaultBody, Control owner) +183
       System.Web.UI.WebControls.LoginUtil.SendPasswordMail(String email, String userName, String password, MailDefinition mailDefinition, String defaultSubject, String defaultBody, OnSendingMailDelegate onSendingMailDelegate, OnSendMailErrorDelegate onSendMailErrorDelegate, Control owner) +341
       System.Web.UI.WebControls.PasswordRecovery.AttemptSendPasswordQuestionView() +653
       System.Web.UI.WebControls.PasswordRecovery.AttemptSendPassword() +66
       System.Web.UI.WebControls.PasswordRecovery.OnBubbleEvent(Object source, EventArgs e) +101
       System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
       System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
    

  • Re: Clubsite - Forgot Password Error

    09-14-2008, 5:14 AM
    Answer
    • Contributor
      2,031 point Contributor
    • ArminStockner
    • Member since 09-19-2006, 6:18 AM
    • Germany, Bavaria
    • Posts 375

    Hi,

    try to put in the smtp section into your web.config like the following sample:

    <system.net>
            <mailSettings>
                <smtp deliveryMethod="Network" from="testuser@domail.com">
                    <network defaultCredentials="true" host="localhost" port="25" userName="kaushal" password="testPassword"/>
                </smtp>
            </mailSettings>
        </system.net>

    Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
  • Re: Clubsite - Forgot Password Error

    09-15-2008, 4:17 PM
    Answer
    • Member
      13 point Member
    • filiflip
    • Member since 08-22-2008, 8:10 PM
    • Posts 11

    This is the answer i was looking for particularly for GoDaddy. Thank you for your help Armin!!!

       <system.net>
          <mailSettings>
            <smtp deliveryMethod="Network" from="youemail@yourhost.com">
              <network
                host="relay-hosting.secureserver.net"
                port="25"
                defaultCredentials="true"
            />
            </smtp>
          </mailSettings>
        </system.net>

Page 1 of 1 (3 items)