Попробуйте использовать следующий код:
<mailSettings>
<smtp from="your@email" >
<network host="localhost" />
</smtp>
</mailSettings>
string mailServerName = "localhost";
Article ID: 298, Created: June 25, 2009 at 9:29 AM, Modified: June 25, 2009 at 9:29 AM