Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am developing a mail sender application in asp.net and i want to mail sending code should run in background even page closed.

Kindly help me

Thanks
Posted
Comments
Thanks7872 3-May-13 4:39am    
which database you used?
Orcun Iyigun 3-May-13 4:45am    
Your options are to use either windows scheduler or a windows service.
Sumit Kumar Singh India 3-May-13 4:45am    
MS Sql Server 2005
vijay__p 3-May-13 4:57am    
You can write SQL job to send scheduled mail

-You can do this through stored procedure. Have a look at Sending mail through Database.
-Create job that will be called at some time interval and call the procedure created above in jobstep.For reference you can have a look at How to: Schedule a Job
-If you want to send mail after certain operation you can make use of Triggers
 
Share this answer
 
v2
Create an exe for your application. Then use windows task scheduler to run this file whenever you need.
 
Share this answer
 
Comments
Sumit Kumar Singh India 3-May-13 5:22am    
I want it web application. User can register and then upload emailid list and click on send.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900