Hello All!
I need to be able to send three different emails all based off of time.
I am going to setup a scheduled task to send emails at 5am, 11am, and 5pm all saying almost the same thing, but I have to change the times in them.
Ex. Right now it says "We are closing the window for 6PM" and i will be sending that at 5pm. So i'd have to make it say 12pm and 6am... etc
I have the VBS written and it sends an email but now i need something that will allow me to change the subject and content based on time.
reason I say closer to is I will set it off at 11, 5, and 5 but who's to know if it actually gets off at 11 on the dot it could be 11:00.50 before it sends the email.
Any ideas?
- Matt
"If I must boast, I will boast of the things that show my weakness"
- Windows 2003 Server, 98 SE, XP
- VB.NET, VSTS 2010, ASP.NET, EXCEL VBA, ACCESS, SQL 2008
I need to be able to send three different emails all based off of time.
I am going to setup a scheduled task to send emails at 5am, 11am, and 5pm all saying almost the same thing, but I have to change the times in them.
Ex. Right now it says "We are closing the window for 6PM" and i will be sending that at 5pm. So i'd have to make it say 12pm and 6am... etc
I have the VBS written and it sends an email but now i need something that will allow me to change the subject and content based on time.
Code:
if time is closer to 11am then
new subject and content
elseif time is closer to 5pm then
new subject and content
elseif time is closer to 5am then
new subject and content
end if
reason I say closer to is I will set it off at 11, 5, and 5 but who's to know if it actually gets off at 11 on the dot it could be 11:00.50 before it sends the email.
Any ideas?
- Matt
"If I must boast, I will boast of the things that show my weakness"
- Windows 2003 Server, 98 SE, XP
- VB.NET, VSTS 2010, ASP.NET, EXCEL VBA, ACCESS, SQL 2008