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
 
Back
Top