Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook Mail code

Status
Not open for further replies.

akutty

IS-IT--Management
Jul 7, 2004
31
GB
Hi All

Looking for a Program that will send an automatic email to the same mailbox every five minutes with the subject <Test>

The mail box will get a response Delivery confirmation, we need a code which will send this mail and then be able to read the timestamp of the returned email

is that possible?

regards
Anil
 
Try this
Create an Access Database.
Copy this into a module.
(fill in the blanks)
Dim objOutlook, objMailItem

Set objOutlook = CreateObject("Outlook.Application")
Set objMailItem = objOutlook.CreateItem(0)

objMailItem.To = ""
objMailItem.CC = ""
objMailItem.Subject = "Test"
objMailItem.Body = " "
objMailItem.Send
Set objMailItem = Nothing
Set objOutlook = Nothing

Create an Macro and name it Autoexec.
Create a scheduled task to open the database every 5 minutes.

It will create your message and send it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top