G
Guest
I'm trying to setup a email info config section like:
<contactForm>
<email>
<add key="toaddress" value="(e-mail address removed);" />
<add key="toaddress" value="(e-mail address removed);" />
<add key="toaddress" value="(e-mail address removed);" />
<add key="subjectprefix" value="website contact: " />
<add key="smtphost" value="mail.myhost.com" />
<add key="greeting" value="Please feel free to send us your
questions or comments." />
</email>
</contactForm>
the multiple toaddress fields would change in number depending on wether I'm
testing a new page and sending results to administrators etc.
the toaddress field is used to create a MailAddress object for adding to a
MailMessage.
or maybe I need nested tags?
<contactForm>
<email>
<addresses>
<add key="toaddress" value="(e-mail address removed);" />
<add key="toaddress" value="(e-mail address removed);" />
<add key="toaddress" value="(e-mail address removed);" />
</addresses>
....
Any code samples or links would be appreciated, not sure what class to use
for the ConfigSection handler so it creates a collection of toaddresses.
Thanks for any ideas!
<contactForm>
<email>
<add key="toaddress" value="(e-mail address removed);" />
<add key="toaddress" value="(e-mail address removed);" />
<add key="toaddress" value="(e-mail address removed);" />
<add key="subjectprefix" value="website contact: " />
<add key="smtphost" value="mail.myhost.com" />
<add key="greeting" value="Please feel free to send us your
questions or comments." />
</email>
</contactForm>
the multiple toaddress fields would change in number depending on wether I'm
testing a new page and sending results to administrators etc.
the toaddress field is used to create a MailAddress object for adding to a
MailMessage.
or maybe I need nested tags?
<contactForm>
<email>
<addresses>
<add key="toaddress" value="(e-mail address removed);" />
<add key="toaddress" value="(e-mail address removed);" />
<add key="toaddress" value="(e-mail address removed);" />
</addresses>
....
Any code samples or links would be appreciated, not sure what class to use
for the ConfigSection handler so it creates a collection of toaddresses.
Thanks for any ideas!