Clubsite - Forgot Password Errorhttp://forums.asp.net/t/1319789.aspx/1?Clubsite+Forgot+Password+ErrorMon, 15 Sep 2008 20:17:27 -040013197892620030http://forums.asp.net/p/1319789/2620030.aspx/1?Clubsite+Forgot+Password+ErrorClubsite - Forgot Password Error <p>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?</p> <p>---------------------------</p> <span></span><span> <h1>Server Error in '/westgate' Application. <hr width="100%" color="silver" size="1"> </h1> <h2><i>A from e-mail address must be specified in the From property or the system.net/mailSettings/smtp config section.</i> </h2> <p></span><font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "><b>Description: </b>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. <br> <br> <b>Exception Details: </b>System.Web.HttpException: A from e-mail address must be specified in the From property or the system.net/mailSettings/smtp config section.<br> <br> <b>Source Error:</b> <br> <br> <table class="" width="100%" bgcolor="#ffffcc"> <tbody> <tr> <td class=""><pre class="prettyprint">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.</pre> </TD></TR></TBODY></TABLE><BR><B><FONT face=Verdana>Stack Trace:</FONT></B> <BR><BR> <TABLE class="" width="100%" bgColor=#ffffcc> <TBODY> <TR> <TD class=""><pre class="prettyprint"><PRE>[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 </PRE></pre></td> </tr> </tbody> </table> </font></p> 2008-09-14T04:56:31-04:002620153http://forums.asp.net/p/1319789/2620153.aspx/1?Re+Clubsite+Forgot+Password+ErrorRe: Clubsite - Forgot Password Error <p>Hi,</p> <p>try to put in the smtp section into your web.config like the following sample:</p> <p>&lt;system.net&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;mailSettings&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;smtp deliveryMethod=&quot;Network&quot; from=&quot;testuser@domail.com&quot;&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;network defaultCredentials=&quot;true&quot; host=&quot;localhost&quot; port=&quot;25&quot; userName=&quot;kaushal&quot; password=&quot;testPassword&quot;/&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/smtp&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/mailSettings&gt;<br> &nbsp;&nbsp;&nbsp; &lt;/system.net&gt; <br> </p> 2008-09-14T09:14:40-04:002622953http://forums.asp.net/p/1319789/2622953.aspx/1?Re+Clubsite+Forgot+Password+ErrorRe: Clubsite - Forgot Password Error <p>This is the answer i was looking for particularly for GoDaddy. Thank you for your help Armin!!!</p> <p>&nbsp;&nbsp; &lt;system.net&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailSettings&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;smtp deliveryMethod=&quot;Network&quot; from=&quot;<a href="mailto:youemail@yourhost.com"><font color="#034efa">youemail@yourhost.com</font></a>&quot;&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;network<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; host=&quot;relay-hosting.secureserver.net&quot;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; port=&quot;25&quot;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; defaultCredentials=&quot;true&quot;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/smtp&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/mailSettings&gt;<br> &nbsp;&nbsp;&nbsp; &lt;/system.net&gt;</p> 2008-09-15T20:17:27-04:00