CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2000
    Posts
    6

    MAPI LOGIN FAILED

    my application is running as a service but I get MAPI LOGIN FAILED when I try to start a mapi session .It doesn't happen when running the application normally. Any ideas???


  2. #2
    Join Date
    Mar 2000
    Location
    MALAYSIA
    Posts
    30

    Re: MAPI LOGIN FAILED

    Sorry, I couldn't help you on this, but try putting username and password in. And also, force it to prompt for login screen.

    And, perhaps, you could help me this:

    I am writing an email/fax application using the VB MAPI control. And the code is basically like this:

    MAPISession.SignOn
    MAPISession.NewSession = True

    MAPIMessages.SessionID = MAPISession.SessionID

    MAPIMessages.Compose
    MAPIMessages.MsgIndex = -1
    MAPIMessages.RecipAddress = "[email protected]"
    MAPIMessages.MsgSubject = "xxxxx"

    MAPIMessages.AttachmentIndex = 0
    MAPIMessages.AttachmentType = mapData
    MAPIMessages.AttachmentPathName = "c:/test.txt"

    MAPIMessages.Send

    I have both Microsoft Outlook and Outlook Express on my machine. Everything looked pretty good as I was able to get my application to work with Outlook Express, but it fails when using Microsoft Outlook.

    The error occurs on the line:
    MAPIMessages.Send
    and I get the following message:
    "Unspecified Error Occurred 32002"

    Is there any known problems using the MAPI control with Microsoft Outlook? Any information on this??

    Thanks in advance.



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

Featured