Email config change problem

May 22, 2012 at 10:26 PM

I found that when I tried to save any email config changes, I got an error in the following line:

MapperSupport.MapperWebForms.UpdateModel(config.Config, this.Request.Form, null, excludeProps);

because

config.Config

kept coming back as null. To avoid this, I had to change the method ConfigureSettings
of Global.asax.cs

After the line

SiteSettings.Instance.Email = EmailHelper.GetSettings(Config.Current, "EmailSettings", () => new ComLib.Web.Lib.Settings.EmailSettings());

 

I had to put

CMS.Configs.Register(SiteSettings.Instance.Email, "email", "Email", "Email Settings");

 

Has anyone else run into this problem?