Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi...

my project is to send mails daily, weekly and monthly.
if the user gives from and to date mail should be send between that dates

if it is weekly user selects day on which he has to send mail and mail should be sent on that day.
if it is monthly user selects month mails should be sent through out the month.


thanks in advance..
Posted
Comments
Pankaj Nikam 6-Jul-12 3:52am    
So what have you tried till now? What problem are you facing? Please use the "Improve Question" link and update so that we can help you better.
bbirajdar 6-Jul-12 4:59am    
This question has been posted and answered a thousand times before on CodeProject. Try searching first and then post the question....
Alkyy 22-Feb-17 12:48pm    
Sandeep mentioned Windows Service below, however just in case I wanted to say that there is an alternative that you could consider and that is to make a task in task scheduler that will run periodically and check if some users need to be notified. To notify the users you can send emails from C# by using this C# library for emails.

You need Windows Service for this.

Sample: Simple Windows Service which sends auto Email alerts[^]
Details about Windows Service: MSDN: Introduction to Windows Service Applications[^]
 
Share this answer
 
Comments
Manas Bhardwaj 6-Jul-12 5:44am    
Good Suggestion +5!
This may help you.

http://www.dotnetspider.com/forum/312163-Scheduled-execution-particular-code-using-asp.net.aspx[^]

Use this to schedule execution of your code.

http://bradkingsley.com/sending-email-from-asp-net-4-c-sample-code/[^]

Use this code for sending email with ASP.NET.
 
Share this answer
 
 
Share this answer
 
Comments
Manas Bhardwaj 6-Jul-12 5:44am    
good link +5
Prasad_Kulkarni 6-Jul-12 6:05am    
Thank you Manas!
Your problem is not clear to me but you can try by creating a windows service and schedule once every day and checking specific condition to send mails.Please explain exact requirements in details.

Thanks
 
Share this answer
 

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