Password reset

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
3/27/2013 7:58:04 AM
Gravatar
Total Posts 28

Password reset

Hi Joe,

I currently have two sites both running on Latest Mojoportal version 2.3.9.6. One site te password retrieval works fine and has no issues but my second site cannot retrieve passwords to email address. It will allow you to enter the email address you want it to send too and give output that is sent but nothing comes through on any emails .

 

 

3/27/2013 2:15:01 PM
Gravatar
Total Posts 18439

Re: Password reset

Are you using the same smtp settings for both sites?

ie if you have this set to true in user.config then it uses smtp settings from the site settings page not from the config file. In that case each site must be configured separately.

<add key="EnableSiteSettingsSmtpSettings" value="true" />

if it is set to false then all sites in the installation should be using the same settings but you need to make sure you have a valid "Default From Email Address" in site settings. A bad address there can make the mail server reject the mail and not send it.

you might also look to see if any errors are being logged related to sending mail under Administration > System Log

See  also Email Configuration

Hope that helps,

Joe

4/2/2013 10:59:13 AM
Gravatar
Total Posts 28

Re: Password reset

Hi Joe,

I have all the settings regarding smtp setting in my user.config file. I still cannot get my password to send to me . It will accept all detauils and say it is being sent but nothing comes through.

 

I have looked in the error log and this is what i get

 

This is your sign in information for http://www.asauk.co.uk
 
System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: SMTP authentication is required.
   at System.Net.Mail.RecipientCommand.CheckResponse(SmtpStatusCode statusCode, String response)
   at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception)
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at mojoPortal.Net.Email.Send(SmtpSettings smtpSettings, MailMessage message)


I have even ticket myself as a trusted user.

 

Any suggestions

4/2/2013 11:35:57 AM
Gravatar
Total Posts 18439

Re: Password reset

Based on the error message it sounds like one or both of these should be true:

<add key="SMTPUseSsl" value="true" />
<add key="SMTPRequiresAuthentication" value="true" />

other than that I suggest google that error message for more ideas: "The SMTP server requires a secure connection or the client was not authenticated"

4/3/2013 3:47:19 AM
Gravatar
Total Posts 28

Re: Password reset

Hi Joe,

 

Ive narrowed it down to a problem with the SLL certificate. Do you think it could be to do with code or actual problem on the mail server side.

 

below is a copy of the user.config file

 

<?xml version="1.0" encoding="utf-8"?>
<appSettings>
 
  <!--
  IMPORTANT:
  Note that changes made to this file are not automatically detected by the ASP.NET runtime
  It does detect changes to Web.config, so when you make a change in this file you need to touch Web.config (ie type a space in it and save it)
  to make it reload settings
  -->

  <add key="MSSQLConnectionString" value="server=(local);UID=asauk;PWD=Arv1x3web;database=asauk" />

  <add key="MySqlConnectionString" value="Server=localhost;Database=mojoprod;Uid=root;Pwd=Charset=utf8;" />

  <add key="PostgreSQLConnectionString" value="Server=localhost;Port=5432;User Id=postgres;Password=;Database=mojo;Encoding=UNICODE;" />
 
  <add key="FirebirdConnectionString" value="Data Source=localhost;Server Type=0;Port Number=3050;Database=C:\mojoportal\mojoportal.fdb;Dialect=3;Charset=UTF8;Pooling=True;Min Pool Size=0;Max Pool Size=200;Connection Timeout=10;Connection Lifetime=60;Fetch Size=200;User Id=SYSDBA;Password=masterkey" />

  <!--
            you can use a fully qualified file path as shown below
            or if you are using the default db at /Data/sqlitedb/mojoportal.db
            just leave this set to "defaultdblocation"
        <add key="SqliteConnectionString" value="version=3,URI=file:C:\\Projects\mojoportal\Web\Data\sqlitedb\mojoportal.db" />
        -->

  <add key="SqliteConnectionString" value="defaultdblocation" />


  <!-- if running in medium trust uncomment this
    <add key="RunningInMediumTrust" value="true" />
    -->
  <add key="CacheCssOnServer" value="false" />
  <add key="CacheCssInBrowser" value="false" />

  <add key="ImageGalleryUseMediaFolder" value="true" />
  <add key="GreyBoxCssIsLoadedFromSkin" value="true" />
 
  <add key="mojoProfileConfigFileName" value="CustomProfile.config" />
  <add key="DisableSearchFeatureFilters" value="false" />
  <add key="SearchUseBackwardCompatibilityMode" value="false" />
  <add key="EnableSearchResultsHighlighting" value="true" />
  <add key="SearchIncludeModuleRoleFilters" value="true" />
  <add key="Forum:AggregateSearchIndexPerThread" value="true" />
 
  <add key="UseLegacyCryptoHelper" value="false" />
 
<add key="SMTPServer" value="localhost" />
<add key="SMTPPort" value="25" />
<add key="SMTPUser" value="UserName" />
<add key="SMTPPassword" value="UPassword" />
<!-- leave this blank for ascii encoding -->
<add key="SmtpPreferredEncoding" value="" />
<!-- example for Russian encoding
<add key="SmtpPreferredEncoding" value="koi8-r" />
<add key="SMTPUseSsl" value="true" />
<add key="SMTPRequiresAuthentication" value="true" />
-->
 
mailSettings>
  <smtp deliveryMethod="Network" from="amrit.enest@gmail.com">
    <network host="smtp.gmail.com" port="25" userName="amrit.enest@gmail.com"
        password="sending emails's password" enableSsl="true" />
  </smtp>

</mailSettings>
</appSettings>

 

I seem to have all the relevant information needed unless you manage to notice something missing.

4/3/2013 9:38:20 AM
Gravatar
Total Posts 18439

Re: Password reset

<mailSettings cannot go in user.config and it should cause an error if you put it there. You should remove that completely from user.config. Only things from the <appSettings section of Web.config can go in user.config to override the corresponding settings in web.config

Also <mailSettings is not used at all in mojoPortal and does not need to be populated, but if it were populated it would need to be in web.config not user.config.

See Email Configuration

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