how to create attachment for a mailitem in outlook

Joined
Apr 20, 2007
Messages
2
Reaction score
0
hi,

i am writing add-in for outlook using OOM in c++.

My problem is to create attachment and add it to a mailItem;
i have _MailItemPtr (pMailItem ) and by this i am able do other modifications
like changing its subject using
pMailItem->put_Subject(BSTRcaption);

but not finding any way to create attachment .

Any advise is appriciable.
thanks in advance

Regards
Sunil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top