PC Review


Reply
Thread Tools Rate Thread

Automated email based on date

 
 
Gene Ariani
Guest
Posts: n/a
 
      1st Sep 2003
I have been asked to create an application to automatically send emails when
a date is reached. These dates are in a table in a database.

How would I approach this since I have never done something like this.

Any direction is appreciated it.

Thanks

Gene


 
Reply With Quote
 
 
 
 
Stephen
Guest
Posts: n/a
 
      1st Sep 2003
Well if the app is going to be running all the time, you will need a timer
set up to check the date every now and then. Otherwise, if it is just run
once/day then check it when it is launched.

For each person that gets an email when the dates match, create an instance
of SmtpMail with the right server and then use SmtpMail.Send(from, to,
subject, body). All those are strings. The .NET Framework handles all the
SMTP server code from there.

"Gene Ariani" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have been asked to create an application to automatically send emails

when
> a date is reached. These dates are in a table in a database.
>
> How would I approach this since I have never done something like this.
>
> Any direction is appreciated it.
>
> Thanks
>
> Gene
>
>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      2nd Sep 2003
Hello,

"Gene Ariani" <(E-Mail Removed)> schrieb:
> I have been asked to create an application to automatically send
> emails when a date is reached. These dates are in a table in a
> database.


You can check 'DateTime.Now' using a timer and send the mails using .NET
classes:

http://www.mvps.org/dotnet/dotnet/samples/net/
-> "SendMail"

HTH,
Herfried K. Wagner
--
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet


 
Reply With Quote
 
Gene Ariani
Guest
Posts: n/a
 
      4th Sep 2003
Stephen;

Thank you very much for taking the time to answer my post. I will follow
your advice.


Gene


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Gene Ariani
Guest
Posts: n/a
 
      4th Sep 2003

Herfried;

Thank you very much for taking the time to answer my post. I will follow
your advice.


Gene




*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automated email notices based on specific dates in Access =?Utf-8?B?U2hlaWxhIEJyb3du?= Microsoft Access VBA Modules 4 24th Jun 2006 02:15 PM
AUTOMATED EMAIL FROM DATE FIELDS IN ACCESS Liam.M@awamarine.com.au Microsoft Access Form Coding 0 12th May 2006 03:34 AM
Schedule an email based on date in SQL DB msnews.microsoft.com Microsoft Dot NET 1 27th Oct 2004 07:13 PM
VBA email based on custom date Rufus Williams Microsoft Outlook VBA Programming 0 11th Sep 2003 03:50 PM
Automated email based on date Gene Ariani Microsoft Dot NET Framework 0 1st Sep 2003 06:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:25 AM.