Approved User - Email failure

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
4/5/2011 8:34:32 PM
Gravatar
Total Posts 5

Approved User - Email failure

I have a site that will require approval for new users.  An email is being sent to the administrator when a new users registers.  However, the approval email is not being sent back to the new user when the are approved.

Any ideas?  I am using webhost4life for my host provider.

Thanks.

4/7/2011 12:31:58 PM
Gravatar
Total Posts 5

Re: Approved User - Email failure

To follow up, here are the settings they have given me that still do not work.  I use this information in both the sections of the web.config.

host=smtp.webhost4life.com

Port=25 or 587

SSL - turned off

Do I need to also put this information in the web.fulltrust.config?

 

Just trying to figure this out.

4/7/2011 12:39:38 PM
Gravatar
Total Posts 18439

Re: Approved User - Email failure

typically the main smtp settings from the <appSettings section of Web.config should go in the user.config file so you don't have to worry about maintaining them during upgrades.

The same settings are used for notifying the admin so it should also work for notifying the user. If there is any error happening when sending it should be in the log under /Administration > System log, if there is no error then most likely the message is getting sent. Whether it is received is a different issue that may depend on spam filters and other factors at the receiving end or relay rules at your smtp server.

Hope it helps,

Joe

4/7/2011 12:45:40 PM
Gravatar
Total Posts 5

Re: Approved User - Email failure

Thanks.  It is really crazy.  I receive the email when a new user registers, but no one has gotten an email when they have been approved.  I have also verified that the 'Recover Password' email is being send and received by users.  So, it almost seems like the "Approval" email is the only thing having the issue.

 

I do not see any errors in the log.

 

Any other ideas?

4/7/2011 1:01:06 PM
Gravatar
Total Posts 18439

Re: Approved User - Email failure

So you have it checked in Site Settings > Security

Require Approval Before New Users Can Sign In?

And you approve the user from the ManageUsers.aspx page?

and nowhere in web.config nor user.config do you have this setting which would disable it?

<add key="NotifyUsersOnAccountApproval" value="false" />

If those things are all true then I am just as puzzled as you unless your smtp server is only relaying to specific domains or is otherwise configured to not send certain emails.

Best,

Joe

 

5/6/2011 7:53:15 AM
Gravatar
Total Posts 5

Re: Approved User - Email failure

Hi Joe,

I am having the same issue i.e. I get email when a new user is registered on site. But the user never receives email on approval. The email gets send and received on Contact form no problem.

My site is running 2.3.6.5

I have updated the copied email settings from web.config to user.config and changed settings to use my mail server. But seems made no difference. I have also updated the<system.net> settings in web.config.

 *********************************************************************************** -->
    <!-- ****************************** Begin email settings ******************************* -->
    <!-- *********************************************************************************** -->
    <!-- Note you also need to specify SMTP settings further below in the system.net section. The
         settings here appply to features, but the settings in the system.net mailSettings section
         are used for site registration and password recovery. -->
    <add key="DisableDotNetOpenMail" value="true" />
    <add key="SMTPServer" value="localhost" />
    <add key="SMTPRequiresAuthentication" value="false" />
    <add key="SMTPUseSsl" value="false" />
    <add key="SMTPPort" value="25" />
    <add key="SMTPUser" value="UserName" />
    <add key="SMTPPassword" value="UPassword" />
    <add key="SMTPTimeoutInMilliseconds" value="30000" />
    <!-- Leave this blank for ASCII encoding. Allowed values are utf-8, utf-32, and unicode -->
    <add key="SmtpPreferredEncoding" value="" />
    <!-- *********************************************************************************** -->
    <!-- ***************************** End Email settings ********************************** -->
    <!-- *********************************************************************************** -->

There is no <add key="NotifyUsersOnAccountApproval" value="false" /> in my web or user.config file.

Thanks.

 

Best Regards,

Kevin

11/7/2011 3:49:48 PM
Gravatar
Total Posts 2

Re: Approved User - Email failure

I know this is an old post, but I am having the same issue. I did a little debugging and found that the file Data\messageTemplates\en-US-AccountApprovedMessage.config is missing on my system so the email has no body. This could cause a problem when sending the email. I need to do some looking to see if I have a copy of this file on one of my other systems so I can add it.

System Information

mojoPortal Version 2.3.6.7 MSSQL
Operating System Microsoft Windows NT 5.2.3790 Service Pack 2
.....

11/8/2011 6:49:40 AM
Gravatar
Total Posts 18439

Re: Approved User - Email failure

Hi,

Thanks for letting me know. You are right the file was missing even from source code.

You can create a file with the contents below, I will do the same and add it to the source code repository.

Thanks,

Joe

 

 

Your account at {0} has been approved.
 
You can now sign in at {1}
 
 
You must sign in to post in the forums. This thread is closed to new posts.