I want to create a system where I can email a user. Can I write this in code. Example: the time is 12:00 am. Send Steve and email that says the time is 12:00. I know how to do everything but create and send the email?
Thanks for any help
Printable View
I want to create a system where I can email a user. Can I write this in code. Example: the time is 12:00 am. Send Steve and email that says the time is 12:00. I know how to do everything but create and send the email?
Thanks for any help
Hi,
Check out "Automating OutLook with OLE" in the tips section of this board. Page 4 shows some code.
Al.
------------------
A computer is a tool, not a toy.
This is how I would send an email through Outlook 98. (Remember and reference the Microsoft Oulook 98 Object Model in your project)
------------------Code:Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olMailItem)
myItem.To = "Steve"
myItem.Body = "The time is 12.00 am"
myItem.Send
Ishamel
[email protected]