Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

[2458] MAPI Emailer

Last post 12-01-2006 12:59 PM by evanscolin. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [2458] MAPI Emailer

    This thread is for discussions of MAPI Emailer.

    • Post Points: 15
  • 02-22-2004 10:35 PM In reply to

    • lunchbox
    • Not Ranked
    • Joined on 02-22-2004
    • New Member
    • Points 5

    email send locks up

    Hi

    I am trying to use the simple email method in VB6  using a MAPIMessage object in Win98se.

    Here is the start of the code:

    Function SendMessage(EmailAddress As String, Subject As String, MessageText As String)
    On Error GoTo mailerr:
    MAPISession1.SignOn
    If MAPISession1.SessionID <> 0 Then
       With MAPIMessages1
           .SessionID = MAPISession1.SessionID
           .Compose
           .RecipAddress = EmailAddress
           .MsgSubject = Subject
           .MsgNoteText = MessageText
           .Send False
       End With



    When the line

    MAPISession1.SignOn

    is reached the programme locks up.

    The only thing I can think of is dll problems, but MAPI.dll and MAPI32.dll are both present.

    Can anyone help please?

    Lunch
    • Post Points: 0
  • 12-01-2006 12:59 PM In reply to

    Re: [2458] MAPI Emailer

    Hi, this is probably a miss on my part but when I use the example you've given I get and error linked to MAPISession1 - varibale not defined, I'm obviously missing a component, I've added the MAPIMessage1 but your example doesn't explain the session, and I'm relatively new to Vb and especially this area, if you could help I'd appreciate it, thanks
    • Post Points: 5
Page 1 of 1 (3 items)