C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




how to send the mail in below task using asp.net


Posted Date: 25 Jul 2008      Total Responses: 1

Posted By: Sridharan       Member Level: Silver     Points: 1


Hi;


I have to set the dropdownlist and select the data in the dropdown list means its asking future date such as tomorrow date and give the date and next day its send the remainder mail and i have complete the till asking future date process and remaining how to do this task and send the sample code also
and how to windows service periodically checks the database for sending mails and how to shedule this job

Regards

Sridharan.S




Responses

Author: Ashish Shah    26 Jul 2008Member Level: GoldRating:     Points: 6
Hello,

Simply create one window service project which will peordically check in the database and sends the mail if requers..

For make window service perodically check you can use following code



System.Timers.Timer timerRSSNewsContentUpdateService = new System.Timers.Timer();
timerRSSNewsContentUpdateService.Interval = Convert.ToInt64(executionInterval);
timerRSSNewsContentUpdateService.Elapsed += new ElapsedEventHandler(RSSNewsContentUpdaterService_TimerElapsed);

protected override void OnStart(string[] args)
{
timerRSSNewsContentUpdateService.Enabled = true;
}
protected override void OnStop()
{
timerRSSNewsContentUpdateService.Enabled = false;
}
protected void RSSNewsContentUpdaterService_TimerElapsed(object source, ElapsedEventArgs e)
{
//Your logic for sending the mail
}


With Regards..

Ashish Shah
India,Surat



Post Reply
You must Sign In to post a response.
Next : delete
Previous : Listbox in ASP.NET with # Coding?
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use