I dont check the body format. In my addin when i open a mail i just add one
attachment to it. what is missing/default argument for the Position argument
? where we need to pass it?
When i add an attachment then i pass attachment position.
"Ken Slovak - [MVP - Outlook]" wrote in message
...
What BodyFormat is the message in? Have you tried supplying a
missing/default argument for the Position argument (not sure how that
would be done using C++).
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"Ashish" wrote in message
...
I remove the code to set subject. But still embeded image is not visible
when open mail. Now i'm sure it happens due to adding an attachment. If i
dont add attachment then embeded image is visible. Attachment is a text
file. I use following code to add attachment
variant_t vpath(attachfile_path.c_str());
variant_t vposition( 1);
variant_t vdisplay(attachfilename);
variant_t filetype((long)1);
((Outlook::_MailItemPtr)MailItemptr)-Attachments-Add(vpath,filetype,vposition,vdisplay);