Results 1 to 2 of 2

Thread: How can I send emails from Word2000 using visual basic?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    Malmoe, Sweden
    Posts
    1

    Post

    If you know how to do this, then please help me as soon as posible!
    Thank you!

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Post

    Hmmm... Actually you can't! Simply because Word can't send any e-mail. It actually just use the MAPI client (Outlook for example) that you have installed.

    What you can do, if you want to use e-mail, is to add the MAPI controls to a form and use code simular to this to send it:

    MAPISession1.SignOn
    MAPIMessages1.SessionID = MAPISession1.SessionID
    MAPIMessages1.Compose
    MAPIMessages1.MsgSubject = "Testing..."
    MAPIMessages1.MsgNoteText = "This is the body of my email"
    MAPIMessages1.RecipAddress = "[email protected]"
    MAPIMessages1.RecipDisplayName = MAPIMessages1.RecipAddress
    MAPIMessages1.Send
    MAPISession1.SignOff

    Good luck!

    ------------------
    Joacim Andersson
    [email protected]
    [email protected]
    www.YellowBlazer.com



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