Click here to Skip to main content
15,886,096 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Is there some way to send regular email notifications without requiring user to sign in?
Posted
Comments
VC.J 7-Oct-14 7:59am    
Try window Service that can send e-mail after an interval
Akshay Raut 16-Oct-14 6:04am    
okay thanks. I'll try.

Hi,

There are couple of ways to do this things,

1) Using Automated Email Notifications using SQL Server Job Schedular

http://www.aspsnippets.com/Articles/Automated-Email-Notifications-using-SQL-Server-Job-Schedular.aspx[^]

2) Using Window Service in C#

For that you can create a window service and install it at your server and in your window service you can logically schedule the mails to send

For creating window service refers the following Document
Simple Windows Service Sample

If this helps then please make this post as answered.

Happy Coding

Regards,
Renish Patel
 
Share this answer
 
Comments
Akshay Raut 16-Oct-14 12:12pm    
thanks for suggesting them. I'm sorry I replied so late because I don't get to use Internet frequently. I'm trying to check which works simpler among SQL email notification, window service and Console application as suggested by jkirkerx in other answer. I'll reply as soon as I test them. Thanks again
renish patel 28-Oct-14 5:12am    
ok nop,please provide your feedback accordingly.
The other way is to write a console app, and then book a job in the windows scheduler to fire the console app at the appropriate date and time.

So do your research first, figure out if your running on a server core with no GUI, or Server core with minimum GUI or full GUI. If your not running a GUI with a shell to execute the console app, then you need a windows service, which is harder to write.

I just used the above tutorial to write a windows service to do the same thing you want or need to do, and found it more difficult than the article expresses. But it's almost done and so far so good.

C#: Building a Useful, Extensible .NET Console Application Template for Development and Testing[^]
 
Share this answer
 
Comments
Akshay Raut 16-Oct-14 12:14pm    
thanks. This does seem like a better alternative but I'll reply as soon as I test all and only if it doesn't give me headache. Thanks
jkirkerx 16-Oct-14 14:14pm    
I just finished my first production quality version of a windows service including the eventlog dll that is registered to translate the event log messages, and it's self installing as well.

It's like building a car with no windows and you have to test drive it to make sure its works correctly.

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