Here are the main ways to set up the Web correctly. Config file to receive user feedback messages.
The Web in the general tutorial. Config file settings do not describe the mailboxes that are used domestically, but only the default configuration:
<system.net> <mailSettings> <smtp deliverymethod= "Network" from= "Name <[ Email protected]> " > <network host= "smtp.example.com"/> </smtp> </mailSettings> </system.net>
However, if you are using 163 mailbox, this is not successful, because 163 mailbox not only need to configure a specific port, but also through SSL encryption, at this time, you need the following configuration:
<system.net> <mailSettings> <smtp deliverymethod= "Network" from= "YourName < <a Target=_blank href= "mailto:[email protected" com ">[email protected] com</a> >" > <network enablessl= "true" host= "smtp.163.com" password= "YourPassword" username= "YourName" port= "25"/ > </smtp> </mailSettings> </system.net>
where "you @ example." Com "to your e-mail address, password and userName in the value of your mailbox is the password and account. In this way, you can receive user feedback in 163 mailboxes.
Also attached is a link to the common Mailbox server port: http://blog.sina.com.cn/s/blog_6e85b10501012kyv.html
Receive ASP. NET user feedback using 163 mailbox