How to send auto matic emails based on scheduled tasks to
several of my clients

Answer Posted / cjani

There are two ways you can achieve this.

1> When time is fixed for scheduler

--> Create a windows application which sends mail to the
clients when its executed
-->add it to windows scheduler(schedule Task) at specified
time

2> When you want cofigurable time for scheduler


--> Create a windows application which sends mail to the
clients when its executed
--> create a windows service add a timer to the service and
set interval to 2 mins suppose.

-->On the timer elapsed event add the code for executing
the above executable

-->before executing you can check that if the current time
is equal to the time specified by user or not..(you can get
it from database or .config file also)

-->if current time = specified time or +2-2 minutes ( as we
have specified interval of 2 minutes so its possible we may
not get exact match so matching range of + or - 2 minutes)


-->install it for scheduler using installutil.. statrt
service

So above scheduler will check after every two minutes for
the matching time and if time matches it would execute the
exe for sending mails. otherwise it would keep on checking
for matching time.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use sessions?

765


Why select Web API?

729


What are the media types of http requests and response?

713


What do you understand from custom control?

803


What is the difference between adding reference in solution explorer and adding references by using ?

766


Name the tools or API for developing or testing web api?

721


Explain code snippet to register exception filters from controller?

808


What are the types of caching in asp.net?

760


Why mvc is faster than asp.net? : Asp.Net MVC

730


List some of the important session state modes of asp.net.

702


What is the concepts of globalization and localization in .net?

718


Can you explain why it is useful to use mvc instead of webforms? : asp.net mvc

771


Can you change a master page dynamically at runtime? How?

681


Explain About WebService

886


Define reflection in .net?

750