string strSmtpServer = "smtp.163.com";//邮箱的SMTP服务器
string strFrom = " ### 写发送邮件的邮箱
string strFromPass = " ### ";//邮箱的密码
string strto = this.TextBox1.Text ;//(输入邮箱的文本框)
string strSubject = TextBox2.Text;
string strBody = CKeditor .Text;//(邮箱的正文内容)
System.Net.Mail.SmtpClient client = new SmtpClient(strSmtpServer);
client.UseDefaultCredentials = true;
client.Credentials = new System.Net.NetworkCredential(strFrom, strFromPass);
client.DeliveryMethod = SmtpDeliveryMethod.Network;
System.Net.Mail.MailMessage message = new MailMessage(strFrom, strto, strSubject, strBody);
message.BodyEncoding = System.Text.Encoding.UTF8;
message.IsBodyHtml = true;
client.Send(message);