我很想知道,是否有一种自动方法,在网上添加电子邮件环境。
已经有一套电子邮件,目前情况如下:
<system.net>
<mailSettings>
<smtp deliveryMethod="Network">
<network host="0.0.0.0" port="25" userName="whatever@whatever.com.br" password="stackoverflow" />
</smtp>
</mailSettings>
</system.net>
因此,我想的是:
1 - How do I add a new e-mail in there set by textboxes in the webform ?
2 - How do I differentiate which one I want to gather at the time ? could you give me a simple C# example on how to get the configs in one of the two ?
提前感谢!