Click here to Skip to main content
16,021,041 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I have to create a new feature of reminder settings in my project.

I have to make the feature like it takes the number of days and send the student progress report to his mail id as a pdf document.

I am new for it.

I am using Visual studio 2010 with c#.

Can any one suggest me how can I do this?
Posted
Updated 31-Oct-12 3:12am
v2

This sounds like a perfect situation to implement a Windows Service application. That application can periodically check and see if notifications are pending and if they are send them out.
 
Share this answer
 
Comments
Hiral21 1-Nov-12 8:01am    
Hi Marcus,
I am new in.Net. Can you give me some idea how I can implement Windows Service Application..?
fjdiewornncalwe 1-Nov-12 9:29am    
A link to the MSDN documentation: Windows Service Application
Hi Hiral,

Though the details provided is very less, If I were at you, I would have followed these steps.

1. Create a database table with columns like id, student_id, DatetoSend, status etc.

2. Now when you have to create a reminder, add a raw with appropriate DateTosend value.

3. Next part depends on how you want to handle.

3.a: One way is to write a trigger which can send email out but this will work only if you have PDF ready.
3.b If you need to create a PDF in C# code, I would write a console application which reads the database, creates PDF and send email. This application, then I can set in "scheduled tasks" of Windows Scheduler.
3.c (As Marcus suggested) A windows service which reads db,prepares PDF and sends out mail
4. Update database status so that you dont send the mail again.

Hope that helps to give some direction to you.
If it does mark the answer as solution and/or upvote.

Thanks
Milind
 
Share this answer
 
v2
Comments
Hiral21 1-Nov-12 8:00am    
Thanks Milind..Your reply will help to understand to flow..
MT_ 1-Nov-12 8:06am    
Welcome. If any answer helps, do not forget to mark it as answer and/or vote. Giving below 3 is considerred downvoting.
You can implement windows service for your requirement. Please have a look at following link:
Automatic Emails in C#[^]
 
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