Results 1 to 3 of 3

Thread: I want to send an Email using code thru Outlook?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 1999
    Posts
    154

    Post

    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

  2. #2
    Hyperactive Member Al Smith's Avatar
    Join Date
    May 1999
    Location
    Marcellus, MI. USA
    Posts
    330

    Post

    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.

  3. #3
    Lively Member Ishamel's Avatar
    Join Date
    Nov 1999
    Location
    Edinburgh, Scotland
    Posts
    112

    Post

    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]


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width