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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MAPISendMail() fails with Thunderbird, error code -2147467259

MAPISendMail() fails with Thunderbird, error code -2147467259

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
2 Posts 1 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.
  • D Offline
    D Offline
    Dave Calkins
    wrote on last edited by
    #1

    We've been using MAPISendMail() for some time to send Email messages with attachments via Thunderbird. Its worked fine. We recently re-installed a machine and the MAPI functionality is no longer working. When calling MAPISendMail we get an error code back, -2147467259. We tried the suggested procedure of ensuring Thunderbird is set as the default Email client with no luck. Oddly the error code is not one of those defined in the header file. Any ideas? Anyone else run unto this with MAPI and Thunderbird?

    D 1 Reply Last reply
    0
    • D Dave Calkins

      We've been using MAPISendMail() for some time to send Email messages with attachments via Thunderbird. Its worked fine. We recently re-installed a machine and the MAPI functionality is no longer working. When calling MAPISendMail we get an error code back, -2147467259. We tried the suggested procedure of ensuring Thunderbird is set as the default Email client with no luck. Oddly the error code is not one of those defined in the header file. Any ideas? Anyone else run unto this with MAPI and Thunderbird?

      D Offline
      D Offline
      Dave Calkins
      wrote on last edited by
      #2

      I've managed to get it going with the following workaround. I allow the user to specify a custom MAPI DLL. Then, instead of just loading "MAPI32.DLL" and letting Windows locate it, I load the DLL the user specified (C:\Program Files\Mozilla Thunderbird\mozMapi32.dll in this case). This seems to be working.

      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