.net2.0邮件发送代码

时间:2008-10-07 12:14:22  来源:第二电脑网上收集  作者:

  第二电脑网导读:liveryMethod = SmtpDeliveryMethod.Network;      System.Net.Mail.MailMessage message = new MailMessage(From,TO, Subject,Body);   message.BodyEncoding = System.Text.Encoding.UTF8;   message.IsBodyHtml = true;   client.Send(message); ...
  正文: System.Net.Mail.SmtpClient client = new SmtpClient(Smtphotoshop/ target=_blank class=infotextkey>pserver);
  client.UseDefaultCredentials = false;
  client.Credentials = new System.Net.NetworkCredential(UID, PWD);
  client.DeliveryMethod = SmtpDeliveryMethod.Network;
  
  System.Net.Mail.MailMessage message = new MailMessage(From,TO, Subject,Body);
  message.BodyEncoding = System.Text.Encoding.UTF8;
  message.IsBodyHtml = true;
  client.Send(message);

".net2.0邮件发送代码"由第二电脑网原创提供,转载请注明:http://www.002pc.com/master/College/Programming/ASP/2008-10-07/3250.html


关键字:

关于《.net2.0邮件发送代码》文章的评论

站内搜索: 高级搜索

热门搜索: Windows style 系统 tr IP QQ CPU 安装 function 注册 if td