469,643 Members | 1,858 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,643 developers. It's quick & easy.

Using Simple MAPI with MS Outlook 2007

Hi there,

I'd like to send emails from a Python program using Simple MAPI. I've
tried this code: http://mail.python.org/pipermail/pyt...er/298066.html
and it works well with Outlook Express 6 and Thunderbird 1.5, but it
doens't work at all with Microsoft Outlook 2007. I keep getting this
message: "WindowsError: MAPI error 2".

I don't want to use Extended MAPI because it doesn't support
thunderbird not OE. Therefore, Simple MAPI is the only option for me.

So, what did I miss here?

Mar 31 '07 #1
1 7790
to******@gmail.com wrote:
Hi there,

I'd like to send emails from a Python program using Simple MAPI. I've
tried this code: http://mail.python.org/pipermail/pyt...er/298066.html
and it works well with Outlook Express 6 and Thunderbird 1.5, but it
doens't work at all with Microsoft Outlook 2007. I keep getting this
message: "WindowsError: MAPI error 2".

I don't want to use Extended MAPI because it doesn't support
thunderbird not OE. Therefore, Simple MAPI is the only option for me.

So, what did I miss here?

From - Sun
Error code 2 error translates to:

"MAPI_E_FAILURE
One or more unspecified errors occurred. No message was sent. "

, rather vague. I haven't used Simple MAPI with Outlook, but did a quick
google search. I found that there is a security feature that may effect
access to Outlook. I have included a few links on the chance that this
is the cause of the problem.
Outlook Email Security Update:

http://www.slipstick.com/outlook/esecup.htm
Outlook security block & Simple MAPI:

http://help.lockergnome.com/office/O...ict946357.html
Customize programmatic settings in Outlook 2007:

http://technet2.microsoft.com/Office....mspx?mfr=true
The google search also uncovered a memory issues with Simple MAPI and
Outlook:

http://blogs.msdn.com/stephen_griffi...mory-leak.aspx
Hope this helps,

Lenard Lindstrom
Apr 1 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Noonan, Derek | last post: by
4 posts views Thread by Noonan, Derek | last post: by
2 posts views Thread by Larry Eaton | last post: by
1 post views Thread by Nick Gilbert | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.