Results 1 to 5 of 5

Thread: Controlling Outlook with VB

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    26

    Exclamation

    Is there anyone to help me how to sent/open/read outlook 98/2000 messages with VB? Thanks...

  2. #2
    Junior Member
    Join Date
    Mar 2000
    Posts
    18
    Send Mail Through outlook:
    Taken from somebody else...

    Make a form

    Place 3 Text boxes

    Place 1 Button

    Private Sub cmdSend_Click()
    Dim olapp As New Outlook.Application
    Dim olMail As Outlook.MailItem

    'Create a new mail object form the
    'Outlook98 Application object
    Set olMail = olapp.CreateItem(olMailItem)

    'Set the mail fields of the olMail object
    olMail.Subject = txtSubject.Text
    olMail.To = txtTo.Text
    olMail.Body = txtBody.Text

    'Tell Outlook to send this message
    olMail.Send

    'Be kind to your environment and clean
    'up your unused objects
    Set olMail = Nothing
    Set olapp = Nothing
    '--end code block

    End Sub

    Hope this helps a little.

    I have some codeexamples for Reading mails as well just a bit too much code to post here...


  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    26

    Arrow SirLee thanks; but

    i want to open a message in outlook and make a program to read it. i don't know how to open it with VB. i will use ur codes to send e-mails, thanks a lot.

  4. #4
    Junior Member
    Join Date
    Mar 2000
    Posts
    18
    Do you want some examples emailed?

    I have a program which cycles through all emails opens them,
    looks for internet email addresses not in the contacts and writes them into contacts.

    If you let me know your email I could send it...


  5. #5

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    26

    Wink i would be grateful

    thanks a lot, here is my e-mail addy.
    mailto: [email protected]
    or
    mailto: [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