Sending email via VB6 - basic.visual

This is a discussion on Sending email via VB6 - basic.visual ; Hello, I need a simple way to send very simple email via a VB6 code. Anyone know how to do that? Any code avaliable? Without using Outlook if possible, I only have Outlook Express avaliable. Bye Jacques...

+ Reply to Thread
Results 1 to 6 of 6

Sending email via VB6

  1. Default Sending email via VB6

    Hello,

    I need a simple way to send very simple email via a VB6 code. Anyone know
    how to do that? Any code avaliable? Without using Outlook if possible, I
    only have Outlook Express avaliable.

    Bye
    Jacques




  2. Default Re: Sending email via VB6

    Jacques St-Pierre wrote:
    > Hello,
    >
    > I need a simple way to send very simple email via a VB6 code. Anyone know
    > how to do that? Any code avaliable? Without using Outlook if possible, I
    > only have Outlook Express avaliable.


    You'll want to look into VB6's "Microsoft MAPI Controls 6.0" and the
    "Simple MAPI" version of the Windows Mail API (MAPI), which is what
    Outlook Express provides you. In my experience sending mail through
    MAPI isn't simple, but it'll work with OE.

    This link has some good introductory information:
    http://www.com.it-berater.org/COM/mapi/mapi.htm

  3. Default Re: Sending email via VB6

    Here is a solution for you:

    http://www.freevbcode.com/ShowCode.Asp?ID=109

    I really like this. It uses the WinSock control, rather than CDO/MAPI which
    requires Outlook.

    Jay Taplin



  4. Default Re: Sending email via VB6


    Take a look at CDOSYS.

    Mike.

    "Jacques St-Pierre" <multelec@globetrotter.net> wrote in message
    news:akzxf.78644$OU5.70730@clgrps13...
    >
    > Hello,
    >
    > I need a simple way to send very simple email via a VB6 code. Anyone know
    > how to do that? Any code avaliable? Without using Outlook if possible, I
    > only have Outlook Express avaliable.
    >
    > Bye
    > Jacques
    >
    >
    >
    >





  5. Default Re: Sending email via VB6


    CDOSYS doesn't require MAPI, which it sounds like you wish to avoid. It's
    also on every Windows 2000 and later system, both server and workstation.

    Mike.

    "Michael D. Ober" <obermd.@.alum.mit.edu.nospam> wrote in message
    news:nUkyf.2842$ee6.491@newsread3.news.pas.earthlink.net...
    >
    >
    > Take a look at CDOSYS.
    >
    > Mike.
    >
    > "Jacques St-Pierre" <multelec@globetrotter.net> wrote in message
    > news:akzxf.78644$OU5.70730@clgrps13...
    > >
    > > Hello,
    > >
    > > I need a simple way to send very simple email via a VB6 code. Anyone

    know
    > > how to do that? Any code avaliable? Without using Outlook if possible, I
    > > only have Outlook Express avaliable.
    > >
    > > Bye
    > > Jacques
    > >
    > >
    > >
    > >

    >
    >
    >
    >





  6. Default Re: Sending email via VB6

    Try this:

    MAPISession1.SignOn
    MAPIMessages1.SessionID = MAPISession1.SessionID
    'Compose new message
    MAPIMessages1.Compose
    'Address message
    MAPIMessages1.RecipDisplayName = "George Bush"
    MAPIMessages1.RecipAddress = george@whitehouse.gov
    ' Resolve recipient name
    MAPIMessages1.AddressResolveUI = True
    MAPIMessages1.ResolveName
    'Create the message
    MAPIMessages1.MsgSubject = "I Love ya"
    MAPIMessages1.MsgNoteText = "Hey Bubba"
    'Add attachment
    MAPIMessages1.AttachmentPathName = "c:\zxcvzxcv.zip"
    'Send the message
    MAPIMessages1.Send False
    MAPISession1.SignOff

    "Jacques St-Pierre" <multelec@globetrotter.net> wrote in message
    news:akzxf.78644$OU5.70730@clgrps13...
    > Hello,
    >
    > I need a simple way to send very simple email via a VB6 code. Anyone know
    > how to do that? Any code avaliable? Without using Outlook if possible, I
    > only have Outlook Express avaliable.
    >
    > Bye
    > Jacques
    >
    >
    >




+ Reply to Thread

Similar Threads

  1. Sending email with attachment through default email client
    By Application Development in forum DOTNET
    Replies: 0
    Last Post: 04-18-2007, 12:28 AM
  2. Sending email with VB using CDO
    By Application Development in forum Microsoft Exchange
    Replies: 1
    Last Post: 12-06-2005, 05:44 PM
  3. Sending email
    By Application Development in forum Inetserver
    Replies: 0
    Last Post: 06-10-2005, 02:17 PM
  4. sending email
    By Application Development in forum Mutt
    Replies: 2
    Last Post: 07-01-2004, 04:14 AM
  5. No NDR when sending an email from a distribution group email address.
    By Application Development in forum Microsoft Exchange
    Replies: 1
    Last Post: 12-12-2003, 10:01 AM