ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-win32
python-win32
[python-win32] Adding attachments to extended MAPI messages
by Shayan Raghavjee other posts by this author
Sep 28 2004 6:12AM messages near this date
Re: [python-win32] DDE Timeouts | [python-win32] XP sp2 Problem?
Hi,

I'm trying to extend David Fraser & Stephen Emslie's extended MAPI code 
to include attachments, but with not much success. It looks like 
CreateAttachment returns a list with an attachment number and a pyAttach 
object. I've been trying to add the desired properties to the pyAttach 
object using it SetProps method, as it's done in the message itself.

In the end, I get an unnamed attachment, with some of the data I put in, 
except the <cr>  character's been changed to something else, (But that 
may be because of the way I'm reading the file perhaps?)  All the other 
properties seem to be ignored, and aren't there if I examine the message 
with something like OutlookSpy.

I've included the test code I'm trying, does anyone have any ideas?

Thanks,
Shayan Raghavjee
St. James Software
Attachments:
mapitest.py
unknown1
unknown2


Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved