TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
anjumathi kumar
NA
54
64k
how to use timer tick event for sending mail on particular date
Sep 14 2011 1:26 AM
public void emailsenddatetimeevent(DateTime emailsenddate)
{
System.Timers.Timer time = new System.Timers.Timer();
string TodayDatetime = DateTime.Now.ToLongTimeString();
time.Start();
time.Interval = 600000;
//double interval = 0;
//if (emailsenddate > DateTime.Now)
//{
// TimeSpan span = emailsenddate - DateTime.Now;
// interval = span.TotalMilliseconds;
//}
if (DateTime.Now == emailsenddate)
emailSend();
}
Hi this is my function for sending mail on particular date..till that i want to check every time using timer..i dono the coding for exactly...i tried the code that oly posted..i have my date in emaildate in the date my emailsend function want to send mail anybody know this? please reply as soon as possible..say what i want to add and how to change
Reply
Answers (
1
)
Display Image from Folder on Server
Error when starting Asp.net Application