• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 659
  • Last Modified:

Sending emails MAPI in outlook 2010 x86

MAPI gives out an error "operation aborted" error code 80004004. When Outlook is not open.

When it is open it sends out the email without an error.

The error occurs at the line  "Recipients.add" line.

MAPI cannot send the email when outlook is not open?
  • 2
1 Solution
David LeeCommented:
Hi, sqlprg.

That's correct.  Outlook has to be open for that code to work.  You're using Outlook's object model which, of course, requires access to Outlook.
sqlprgAuthor Commented:
Thanks, BlueDevilFan, thought as much.
David LeeCommented:
You're welcome.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now