摘要:
【转】http://blog.csdn.net/wandersongsong/archive/2006/03/31/645294.aspx首先在程序开头添加引用:using System.Web.Mail;程序主体部分:MailMessage mailMessage = new MailMessage();mailMessage.To =(收件人的EMAIL地址);mailMessage.From=(发件人的EMAIL地址);mailMessage.Body=(邮件的内容,可以是HTML文件);mailMessage.Subject="(邮件标题!)";mailMessag 阅读全文
摘要:
/// <summary>/// 判断两个日期是否在同一周/// </summary>/// <param name="dtmS">开始日期</param>/// <param name="dtmE">结束日期</param>/// <returns></returns>private bool isWeek(DateTime dtmS, DateTime dtmE){ TimeSpan ts=dtmE>dtmS?dtmE-dtmS:dtmS-dtmE; 阅读全文