// 向客户发送电子邮件提示
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";
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);
本文转自 陈敬(Cathy) 博客园博客,原文链接:http://www.cnblogs.com/janes/archive/2009/04/02/1428515.html,如需转载请自行联系原作者