Results 1 to 8 of 8

Thread: e-mail

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Location
    Belgium (Bruges)
    Posts
    88

    e-mail

    I have a visual basic program who's connected to an access database.

    In a table in the database there is an e-mail field...

    I want to generate an e-mail.

    Is there anyone who has any ideas?
    Greetz matthias

  2. #2
    Fanatic Member arsmakman's Avatar
    Join Date
    Dec 2001
    Location
    Leiden, Netherlands.
    Posts
    719
    Do you mean:
    VB Code:
    1. Shell "start mailto:[email protected]"
    ?
    No matter how fool-proof your program is, there will always be a better fool.

    Was a post helpful to you? Rate it!

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Location
    Belgium (Bruges)
    Posts
    88
    yes but i also want to give the body text with it and let it send automaticallys
    Greetz matthias

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Location
    Belgium (Bruges)
    Posts
    88
    yes but i also want to give the body text with it and let it send automatically
    Greetz matthias

  5. #5
    Fanatic Member arsmakman's Avatar
    Join Date
    Dec 2001
    Location
    Leiden, Netherlands.
    Posts
    719
    Then I don't know...
    No matter how fool-proof your program is, there will always be a better fool.

    Was a post helpful to you? Rate it!

  6. #6
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    do u want to send it thru outlook?

  7. #7
    Junior Member
    Join Date
    Jan 2002
    Location
    Sas van Gent - Holland
    Posts
    23

    This is it

    This is a code I use myself. It sends automatically throught Outlook, but you see the connecting form.

    On Error Resume Next 'may be connected already
    MAPISession1.SignOn

    With MAPIMessages1
    .SessionID = MAPISession1.SessionID
    .Fetch
    .Compose
    .MsgSubject = "My e-mail"
    'MAPIMessages1.AttachmentIndex = 1
    .RecipAddress = "[email protected]"
    .RecipDisplayName = "Webmaster"
    End With


    For this, you need a Mapisession and a mapimessages on your form
    Life is too short.
    Live your life.

    And:
    Believe in god, but dont forget to believe in yourself.

  8. #8
    Megatron
    Guest

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