Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have to send email on particular date.If the the program runs daily only it can send.can please advise on this
Posted
Comments
[no name] 8-Sep-15 2:27am    
Option1: Use of windows service
http://www.aspsnippets.com/Articles/Automatically-send-emails-daily-at-specific-time-using-Windows-Service-in-C-and-VBNet.aspx

Option2: Use of Sqlserver
http://www.aspsnippets.com/Articles/Automated-Email-Notifications-using-SQL-Server-Job-Schedular.aspx

Option3: Use of Windows Scheduler
http://www.c-sharpcorner.com/UploadFile/manas1/console-application-using-windows-scheduler/

Note: If your sending e-mail is only related to Database only you can go for Option2. If it needs any kind of other server access or webservice call then Option1 or Option3 will be good.
Sinisa Hajnal 8-Sep-15 2:33am    
LOL :) You posted seconds after I opened the window. I forgot about database option.
SathishRam 8-Sep-15 2:47am    
thank you, i will try let you know
Sinisa Hajnal 8-Sep-15 2:32am    
1. windows scheduler that will run your program daily. The program checks the date and sends the mail if needed.
2. Windows service: runs on the computer, at some predefined time in the day checks the date, sends mail if needed. Needs to start with OS.
3. System tray program. Again, needs to start with OS.

All are dependant on computer running (of course) - you have to set it up. You will probably need admin rights on the computer for that.
SathishRam 8-Sep-15 3:30am    
thank you

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