Asp.Net 多线程 和 定时发邮件问题
囧 2008-07-07 05:34:32 问题如下:
1.多线程发邮件
我现在做的比较简单,就是直接创建一个线程
public void SendMail(MailTemplate template, object info){
this.template = template;
this.info = info;
Thread thread = new Thread(new ThreadStart(SendMailThread));
thread.Start();
}
public void SendMailThread(){
//这里用到了this.template 和 this.info
}
当发送一个邮件时候没问题,
如果连续调用2次,就出问题了,不知如何解决...
2.定时发邮件
在第一次给客户发邮件后,如客户在48小时内未做任务响应,则再发送一封邮件,不知这个功能如何实现..
各位帮忙看看,谢谢了...