Sending emails MAPI in outlook 2010 x86

Posted on 2011-04-29
Last Modified: 2013-11-05
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?
Question by:sqlprg
    LVL 76

    Accepted Solution

    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.

    Author Closing Comment

    Thanks, BlueDevilFan, thought as much.
    LVL 76

    Expert Comment

    by:David Lee
    You're welcome.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Find out how to use dynamic social media in email signatures with this top 10 DOs & DON’Ts.
    Check out this infographic on what you need to make a good email signature that will work perfectly for your organization.
    This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now