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);
"Ken Slovak - [MVP - Outlook]" wrote in message
...
Just adding another attachment will not modify another attachment,
embedded or not. You must be doing something to corrupt that embedded
image or the attachment.
--
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
...
Hi,
In my outlook addin, I send a mail and copy an image in its body. After
mail received we see embeded image in body in outlook window. When i open
this mail i add an attachment(text type) in the mail and display it.
After adding attachment then embeded image change to blank image. Why it
change to blank image? WHich property is changed after adding attachment.
Should i reset any property of mail after adding attachment.