Password Recovery

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
3/14/2014 8:36:08 AM
Gravatar
Total Posts 5

Password Recovery

Hello,

I'm a relatively new user of mojoportal and I had our site user call today because he tried to use the recover password option and got this error:

We're sorry but a server error has occurred while trying to process your request.

The error has been logged and will be reviewed by our staff as soon as possible. It is possible that the error was just a momentary hiccup and you may wish to use the back button and try again or go back to the home page.

 

I then tried to use the recover password feature and received the same error. The options for allowing recover password are checked in the admin section.

Am I missing something?

 

3/14/2014 10:08:34 AM
Gravatar
Total Posts 18444

Re: Password Recovery

Hi,

For any error start with Basic Troubleshooting to find out the error details.

In this case I think I can guess the cause of the error. If you look in the Web.config fille in the root folder of the site you will probably find this:

 <!-- this isn't used anymore for anything the only smtp settings used are in the <appSettings section so you can move them to user.config -->
  <!--
  <system.net>
    <mailSettings>
      <smtp from="noreply@yourdomain.com">
        <network host="localhost" port="25" password="" userName="noreply@yourdomain.com"/>
      </smtp>
    </mailSettings>
  </system.net>
  -->

it is true as the comment says that the settings from this section are not used, but we have found that the section still must be there or it causes an error, so the problem is that this section is commented out and it needs to be changed by removing the bold parts <!-- and --> from around the section.

Again the settings there don't have to be correct but the section must not be commented out.

Hope that helps,

Joe

3/14/2014 10:34:20 AM
Gravatar
Total Posts 5

Re: Password Recovery

Thanks Joe. This is what I have, do I remove the <!-- and --> from around the "this isn't used anymore..."?

 

<!-- this isn't used anymore for anything the only smtp settings used are in the <appSettings section so you can move them to user.config, however the section still needs to exist here but it does not need to be correct settings -->
  <system.net>
    <mailSettings>
      <smtp from="myemail@myemail.com">
        <network host="localhost" port="25" password="xxx" userName="myemail@myemail.com" />
      </smtp>
    </mailSettings>
  </system.net>

3/14/2014 10:40:26 AM
Gravatar
Total Posts 18444

Re: Password Recovery

not from around the comment above the section only from around the section, what you posted looks correct

 

3/14/2014 10:52:44 AM
Gravatar
Total Posts 5

Re: Password Recovery

This is from the system log:

 

2014-03-14 08:48:47,448 ERROR (null) - (null) - (null) - mojoPortal.Net.Email - error sending email to david@frenchcreekconservancy.org from noreply@yourdomain.com, will retry 
System.Net.Mail.SmtpException: The operation has timed out.
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at mojoPortal.Net.Email.Send(SmtpSettings smtpSettings, MailMessage message)

3/14/2014 12:56:14 PM
Gravatar
Total Posts 5

Re: Password Recovery

Hi Joe,

Here is the error I am getting from the log, any ideas?

I changed a setting in web.config to allow me to change my mail server information from the admin within mojoportal. I'm just using my outgoing smtp and port for my e-mail address but it doesn't seem to be working.

 

2014-03-14 10:51:44,573 ERROR (null) - (null) - (null) - mojoPortal.Net.Email - error sending email to david@frenchcreekconservancy.org from "Recovery Solutions" <scram@recovery-solutions.org>, will retry 
System.Net.Mail.SmtpException: The operation has timed out.
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at mojoPortal.Net.Email.Send(SmtpSettings smtpSettings, MailMessage message)
2014-03-14 10:53:17,635 ERROR (null) - (null) - (null) - mojoPortal.Net.Email - all retries failed sending email to david@frenchcreekconservancy.org from "Recovery Solutions" <scram@recovery-solutions.org>, message was: A request was just submitted to send your Recovery Solutions password for the User david@frenchcreekconservancy.org
Your password is washousky

This is your sign in information for https://recovery-solutions.org
 
System.Net.Mail.SmtpException: The operation has timed out.
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at mojoPortal.Net.Email.Send(SmtpSettings smtpSettings, MailMessage message)
2014-03-14 10:53:17,635 ERROR (null) - (null) - (null) - mojoPortal.Web.UI.Pages.RecoverPassword - unable to send password recovery email. Please check the system.net MailSettings section in web.config 
System.Threading.ThreadAbortException: Thread was being aborted.
   at mojoPortal.Net.Email.Send(SmtpSettings smtpSettings, MailMessage message)
   at mojoPortal.Web.UI.Pages.RecoverPassword.PasswordRecovery1_SendingMail(Object sender, MailMessageEventArgs e)
   at System.Web.UI.WebControls.PasswordRecovery.OnSendingMail(MailMessageEventArgs e)
   at System.Web.UI.WebControls.LoginUtil.SendPasswordMail(String email, String userName, String password, MailDefinition mailDefinition, String defaultSubject, String defaultBody, OnSendingMailDelegate onSendingMailDelegate, OnSendMailErrorDelegate onSendMailErrorDelegate, Control owner)
2014-03-14 10:53:17,635 ERROR 24.144.204.35 - (null) - (null) - mojoPortal.Web.Global - 24.144.204.35 /Secure/RecoverPassword.aspx Referrer(https://recovery-solutions.org/Secure/RecoverPassword.aspx) useragent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.59.10 (KHTML, like Gecko) Version/5.1.9 Safari/534.59.10 
System.Web.HttpException (0x80004005): Request timed out.

3/14/2014 1:05:46 PM
Gravatar
Total Posts 18444

Re: Password Recovery

Have you configured correct smtp settings and tested that other email sent by the site such as the contact form are able to send email.

A timeout can be caused by incorrect settings or network problems or if a firewall is blocking the sending of mail.

3/14/2014 2:17:25 PM
Gravatar
Total Posts 5

Re: Password Recovery

Thanks for your help, Joe. Problem solved.

You must sign in to post in the forums. This thread is closed to new posts.