Results 1 to 8 of 8

Thread: Sending an e-mail withing my program

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    Exclamation

    How can I send an e-mail within my program! All sugestion appreciated. Please also post the code if you suggest using a component!
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Add the MAPI controls to a form and use code simular to this:
    Code:
    Private Sub SendEmail()
        MAPISession1.SignOn
        MAPIMessages1.SessionID = Me.MAPISession1.SessionID
        MAPIMessages1.Compose
        MAPIMessages1.RecipAddress = "[email protected]"
        MAPIMessages1.RecipDisplayName = "Joacim Andersson"
        MAPIMessages1.MsgSubject = "Hiya!"
        MAPIMessages1.MsgNoteText = "Here's the body of the mail"
        MAPIMessages1.Send
        MAPISession1.SignOff
    End Sub
    Good luck!

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    Post

    How can I make it invisible when sending an e-mail
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  4. #4
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    I'm sorry I don't understand. What do you meen by "make it invisible when sending an e-mail"?

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    Thumbs down

    You know when you are downloading or sending e-mail using outlook express. Well, a dialog box pops up that has a hide button, a Sop button and a detail buttong. Whenever you send/recieve mail it pops up. Can you hide that window!
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879
    can someone answer this question
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879
    anybody please reply soon!
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  8. #8
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Hmmm.. I don't get that dialog. But then again I'm not using Outlook Express so I can't really tell how to do it.
    I've got OE on my job though so I look into it when I get there. (That is not before next week I'm affraid).

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