G
Guest
I've tried:
MailSettingsSectionGroup mailConfig =
WebConfigurationManager.GetSection("system.net/mailSettings") as
MailSettingsSectionGroup;
and:
Configuration configurationFile =
WebConfigurationManager.OpenWebConfiguration("/Web.Config");
MailSettingsSectionGroup mailConfig;
if (configurationFile != null)
mailConfig = configurationFile.GetSectionGroup("system.net/mailSettings")
as MailSettingsSectionGroup;
The first method returns null and the second returns an object but it does
not have the host or from properties set.
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
MailSettingsSectionGroup mailConfig =
WebConfigurationManager.GetSection("system.net/mailSettings") as
MailSettingsSectionGroup;
and:
Configuration configurationFile =
WebConfigurationManager.OpenWebConfiguration("/Web.Config");
MailSettingsSectionGroup mailConfig;
if (configurationFile != null)
mailConfig = configurationFile.GetSectionGroup("system.net/mailSettings")
as MailSettingsSectionGroup;
The first method returns null and the second returns an object but it does
not have the host or from properties set.
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm