This is the first article I sent here. In these days, I made a procedure for email, I also checked a lot of information, summarize the main part. First of all, of course, this step is to be configured, if it is a non-book SMTP service, it is not necessary to do this step (nonsense). First open Internet information, right-click SMTP Virtual Server - Properties - Access - Relay - Add, then enter your IP (Of course, if you can also enter 127.0.0.1), determine, configure carry out. Then write code: (My code is as follows, using VB.NET Writing) First to import system.Web.mail Namespace Imports System.Web.mail 1. Using this unit SMTP server Dim Newmail as mailmessage = new mailmessage with newmail .BodyFormat = Mailformat.html .from = "sender email address" .to = "acceptor email address" .subject = "test" .body = "test" end with smtpmail.smtpserver = "The IP" "IP" "IP" The IP just configured SMTPMail.send (newmail) 2. Using other machine SMTP servers (Take 163 as an example) DIM newmail as mailmessage = new mailmessage with newmail.bodyFormat = mailformat.html .fields.add ("http: // schema .microsoft.com / cdo / configuration "," 1 ") .fields.add (" http://schemas.microsoft.com/cdo/configuration/sendusername "," SMTP you want to use "). Fields.add ("http://schemas.microsoft.com/cdo/configuration/sendpassword," your account password ") .from =" sender email address ".to =" Acceptant mail address ".subject = "test". Body = "test" end with smtpmail.smtpserver = "smtp.163.com" '163 SMTP server address SMTPMAIL.SEND (Newmail) If you need other details, you can refer to http://www.systemwebmail.com/