EnableSiteSettingsSmtpSettings Applicable In Single-Site Installations?

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.
11/19/2011 1:53:30 PM
Gravatar
Total Posts 114

EnableSiteSettingsSmtpSettings Applicable In Single-Site Installations?

Hey guys,

Is EnableSiteSettingsSmtpSettings applicable even in single-site installations, and if so, does it eliminate the need to maintain the <system.net> section in web/user.config? This, combined with the concept of seperate configs for things like machineKey, etc. would take virtually all the pain out of a mojoPortal upgrade.

Thanks in advance!

Duane

 

11/20/2011 9:00:56 AM
Gravatar
Total Posts 18439

Re: EnableSiteSettingsSmtpSettings Applicable In Single-Site Installations?

Hi Duane,

The need to maintain system.net.mail section in web.config was eliminated a while back. You can use the site settings or just user.config and you don't have to worry about it during upgrades.

Using separate files for things like machine.config doesn't really solve the problem because we would still have to ship the file with the machinekey and it would overwrite the one on disk during upgrades. In general the machine key is now the only thing one needs to maintain in Web.config unless you have other things in there for custom features.

Best,

Joe

11/20/2011 2:14:15 PM
Gravatar
Total Posts 114

Re: EnableSiteSettingsSmtpSettings Applicable In Single-Site Installations?

Hi, Joe!

No, I didn't mean to imply that you should ship separate config files with the distribution; I understand the issues there. I read that page you posted before posting the question, though, and it just seemed to say that EnableSiteSettingsSmtpSettings only applied to multi-site mojoPortal installations. So I think you've answered my question; I can use it for single-site installations as well. This is a good thing! :)

 

Many thanks, Joe!

 

 

11/20/2011 3:08:39 PM
Gravatar
Total Posts 18439

Re: EnableSiteSettingsSmtpSettings Applicable In Single-Site Installations?

Many thanks as always for the beer Duane!

Yes, you can use the site settings from smtp even for a single site installation, though where it really comes in handy is in a multi site installation when you want to use different smtp settings per site. In a multi site installation where you want to use the same smtp settings in all sites it makes more sense to use user.config so you don't have to maintain the settings in each site.

In a single site installation it just comes down to whether you want to expose those settings to the admin user in Site Settings. I can imagine some cases with a tech savvy admin where you would and some where you might want to prevent a site admin from messing with those settings. It is more convenient to be able to set it in the web ui but then again once set it typically won't need to be changed frequently so it can be better to keep them tucked out of the way in user.config.

Best,

Joe

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