Problem with SMTP settings when using related site mode

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
9/13/2009 2:15:45 PM
Gravatar
Total Posts 118

Problem with SMTP settings when using related site mode

In web config you will find the following:-

<!--
if you want to have different smtp settings per site, set EnableSiteSettingsSmtpSettings to true
and smtp settings will appear in SiteSettings. otherwise use the smtp settings below
-->
<add key="EnableSiteSettingsSmtpSettings" value="false" />
<add key="MaskSmtpPasswordInSiteSettings" value="true" />
<add key="ShowSmtpEncodingOption" value="false" />
 
<!-- ******* end multi site installation settings -->

<!-- ******* email settings
Note you also need to specify smtp settings further below in system.net section the settings here appply to features but
the settings in the system.net.mailsettigns section are used by 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 -->
<add key="SmtpPreferredEncoding" value="" />
<!-- example for Russian encoding
<add key="SmtpPreferredEncoding" value="koi8-r" />
-->

In related site mode changing the SMTPServer setting appear not to work. If however you change EnableSiteSettingsSmtpSettings to true and then set smtp in site settings it works fine.

Neil

9/15/2009 8:16:35 AM
Gravatar
Total Posts 18439

Re: Problem with SMTP settings when using related site mode

Hi Neil,

Are you sure the web.config way does not work in folder sites? It works for me. If you have those settings in user.config youmust touch Web.config after making a change so it will reload the settings.

Best,

Joe

9/15/2009 9:33:19 AM
Gravatar
Total Posts 118

Re: Problem with SMTP settings when using related site mode

Yep

Although I have to enter the actual domain details for the SMTP server as using localhost will not work with my mail server. I spent the best part of 2 days trying to work out why on this site it wouldnt work but all the others it did. Only way I could get it to work was to alter EnableSiteSettingsSmtpSettings. Its certainly not a major problem but had me scratching my head

 

Neil

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