// 向客户发送电子邮件提示
MailMessage objMailMessage;
objMailMessage = new MailMessage();
objMailMessage.From = "mailto:janeschenjing@sina.com“;//源邮件地址
objMailMessage.To = "mailto:janes12@163.com”;//目的邮件地址
objMailMessage.Subject = "注册成功";//发送邮件的标题
objMailMessage.Body = "您好您已经在#网注册成功!“;//发送邮件的内容
//基本权限
objMailMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
//用户名
objMailMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "****");
//密码
objMailMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "**888");
SmtpMail.SmtpServer = "smtp.sina.com.cn";
SmtpMail.Send(objMailMessage);