Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MAPISendMail fails with error 2 on Microsoft Outlook 2003 with Win XP

MAPISendMail fails with error 2 on Microsoft Outlook 2003 with Win XP

Scheduled Pinned Locked Moved C / C++ / MFC
helpcomjsonquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rajesh_Parameswaran
    wrote on last edited by
    #1

    Hi there, I've an application which uses MAPI for sending mails. It was all working well with Outlook 2007 on Win XP. But when I work on Outlook 2003, with the same application, it is throwing an error - 2 (MAPI_E_FAILURE)when making a call to MAPISendMail() API. I used the sample application to test whether there is any issue with Outlook 2003, from the following link: Programmatically adding attachments to emails[^] but it seems to be working well. Only when I try to send mail from my old app, it always returns with the error 2. I've googled and tried almost all possible steps, but the issue still exist. ULONG nError = m_lpfnMAPISendMail(0, 0, &mapiMessage, MAPI_LOGON_UI|MAPI_DIALOG , 0); please advise on the resolution. Thanks in advance. regards, Rajesh

    D 1 Reply Last reply
    0
    • R Rajesh_Parameswaran

      Hi there, I've an application which uses MAPI for sending mails. It was all working well with Outlook 2007 on Win XP. But when I work on Outlook 2003, with the same application, it is throwing an error - 2 (MAPI_E_FAILURE)when making a call to MAPISendMail() API. I used the sample application to test whether there is any issue with Outlook 2003, from the following link: Programmatically adding attachments to emails[^] but it seems to be working well. Only when I try to send mail from my old app, it always returns with the error 2. I've googled and tried almost all possible steps, but the issue still exist. ULONG nError = m_lpfnMAPISendMail(0, 0, &mapiMessage, MAPI_LOGON_UI|MAPI_DIALOG , 0); please advise on the resolution. Thanks in advance. regards, Rajesh

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Rajesh_Parameswaran wrote:

      please advise on the resolution.

      Have you tried this?

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "Man who follows car will be exhausted." - Confucius

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups