Steve-Appetere
-
6/16/2009 8:15:42 AM
LogonForm default "From" email address
Hi
In CMSWebParts/Membership/LogonForm, the default "from" email address is hard-coded around line 59 as:
return DataHelper.GetNotEmpty(ValidationHelper.GetString(this.GetValue("SendEmailFrom"), "admin@domain.com"), "admin@domain.com");
How about changing this to:
return DataHelper.GetNotEmpty(this.GetValue("SendEmailFrom"), SettingsKeyProvider.GetStringValue(CMSContext.CurrentSiteName + ".CMSNoreplyEmailAddress"));
which is what the RegistrationForm uses. This avoids a hardcoded email address in the ASPX page, which is not good for maintenance.
|