Author: Coding | Posted on: 5/5/2009 7:14:53 AM | Views : 297

I have a very strange problem that I have struggled with for some days. I have set up 3 examples where the first is my problem and the 2 other is working fine.

What I will do in the first example wich is my problem is that I use a timer(10 seconds interval) in Global.asax that will execute the function "CheckingThis". First I will Server.MapPath("Folder1\\File.txt"); and then send a mail. This does not work at all, no email is sent.

(I have written above the 3 different approaches what I have done, the thing is that I need to MapPath the file because I need to read a file before sending an email. That is the problem)

 



//No email is sent at all when using this timer and calling Server.MapPath("Folder1\\File.txt"); before sending mail ?
protecte ...

Go to the complete details ...