System.Net.Mail.SmtpClient smtpClient = new SmtpClient();
smtpClient.Host = "smtp服务器域名或IP地址";
smtpClient.Credentials = new System.Net.NetworkCredential("邮箱用户名", "密码");
MailMessage message = new MailMessage();
message.From = new MailAddress("发件箱");
message.To.Add(new MailAddress("收件箱"));
message.Subject = "应聘博客园";
message.Body = "在博客园的Blog:\n应聘职位:\n薪水要求:\n想加入博客园团队的理由:";
//message.Attachments.Add(new Attachment("简历.doc")); //添加附件
smtpClient.Send(message);
smtpClient.Host = "smtp服务器域名或IP地址";
smtpClient.Credentials = new System.Net.NetworkCredential("邮箱用户名", "密码");
MailMessage message = new MailMessage();
message.From = new MailAddress("发件箱");
message.To.Add(new MailAddress("收件箱"));
message.Subject = "应聘博客园";
message.Body = "在博客园的Blog:\n应聘职位:\n薪水要求:\n想加入博客园团队的理由:";
//message.Attachments.Add(new Attachment("简历.doc")); //添加附件
smtpClient.Send(message);
--------------------------
图书专题:走出软件作坊
图书专题:编译原理第2版
新闻:Pew:互联网已取代报纸成为主要新闻来源
导航:博客园首页 知识库 新闻 招聘 社区 小组 博问 网摘 找找看
文章来源:http://www.cnblogs.com/heimirror/archive/2008/07/13/1241674.html