PDA

Click to See Complete Forum and Search --> : I want to send an Email using code thru Outlook?


Steve Thomas
Dec 15th, 1999, 02:19 AM
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

Al Smith
Dec 15th, 1999, 02:29 AM
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.

Ishamel
Dec 15th, 1999, 03:35 PM
This is how I would send an email through Outlook 98. (Remember and reference the Microsoft Oulook 98 Object Model in your project)


Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olMailItem)

myItem.To = "Steve"
myItem.Body = "The time is 12.00 am"
myItem.Send


------------------
Ishamel
KBurt59082@AOL.COM