![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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. |
Ads |
#2
|
|||
|
|||
![]()
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. |
#3
|
|||
|
|||
![]()
Yes when i open that mail, i change its subject and save it.
Is that change the embeded image. I save it like Outlook::_MailOtemPtr ptr = inspector-currentitem; ptr-put_Subject(new subject); ptr-Save(); I call save function because this trigger to property change(of this mail) event. What should i do? "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. |
#4
|
|||
|
|||
![]()
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. |
#5
|
|||
|
|||
![]()
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); |
#6
|
|||
|
|||
![]()
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); |
#7
|
|||
|
|||
![]()
When open mail then first i check all attachments in this mail.
Mail-Attachments-Count = 0. Embeded image is in body of mail Then i add an attachment. After adding attachment i cant see embeded image in mail body. But when i close this mail Mail-Attachments-Count shows value 2. It means when i add an attachment embeded image is converted into attachment(by val). But it doesn't show that attachment. What's wrong here why embeded image change into attachment. Is there any solution for this case. "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); |
#8
|
|||
|
|||
![]()
What is wrong is the Count == 0 return. Any embedded image is an attachment,
how else would it be included in the message? An embedded attachment will have certain properties set on it that are different than an "attached" attachment, but it's still attached to the message. Is the item you are opening saved before you check for attachments count? That's important. Also important is the Outlook version and body format. For example in some cases an embedded attachment such as ClipArt will actually show up as 2 attachments, one is the content and the other is a WMV wrapper. -- 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 ... When open mail then first i check all attachments in this mail. Mail-Attachments-Count = 0. Embeded image is in body of mail Then i add an attachment. After adding attachment i cant see embeded image in mail body. But when i close this mail Mail-Attachments-Count shows value 2. It means when i add an attachment embeded image is converted into attachment(by val). But it doesn't show that attachment. What's wrong here why embeded image change into attachment. Is there any solution for this case. |
#9
|
|||
|
|||
![]()
What is wrong is the Count == 0 return. Any embedded image is an
attachment, when i open mail which contains embeded attachments i check Mail-Attachments-Count value and it returns 0. I check this in Item_Open() event. So in this case attachment for embeded image is not attached to message. Either it's in body or i dont have more idea where it is. Is the item you are opening saved before you check for attachments count? I send a new mail with embeded image. After mail is received i open the mail. Before opening this mail i dont save it. I dont touch body format for this mail. Is there any example for embeded image available? "Ken Slovak - [MVP - Outlook]" wrote in message ... What is wrong is the Count == 0 return. Any embedded image is an attachment, how else would it be included in the message? An embedded attachment will have certain properties set on it that are different than an "attached" attachment, but it's still attached to the message. Is the item you are opening saved before you check for attachments count? That's important. Also important is the Outlook version and body format. For example in some cases an embedded attachment such as ClipArt will actually show up as 2 attachments, one is the content and the other is a WMV wrapper. -- 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 ... When open mail then first i check all attachments in this mail. Mail-Attachments-Count = 0. Embeded image is in body of mail Then i add an attachment. After adding attachment i cant see embeded image in mail body. But when i close this mail Mail-Attachments-Count shows value 2. It means when i add an attachment embeded image is converted into attachment(by val). But it doesn't show that attachment. What's wrong here why embeded image change into attachment. Is there any solution for this case. |
#10
|
|||
|
|||
![]()
I don't care how or where it's opened or how it's done, all embedded images
are attachments on the item. Period. It may be a hidden attachment, where if the property is set it doesn't show the paperclip icon on the item, but it's still an attachment. There are lots of different samples available for embedded attachments, search on Google and at www.outlookcode.com for some. -- 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 ... What is wrong is the Count == 0 return. Any embedded image is an attachment, when i open mail which contains embeded attachments i check Mail-Attachments-Count value and it returns 0. I check this in Item_Open() event. So in this case attachment for embeded image is not attached to message. Either it's in body or i dont have more idea where it is. Is the item you are opening saved before you check for attachments count? I send a new mail with embeded image. After mail is received i open the mail. Before opening this mail i dont save it. I dont touch body format for this mail. Is there any example for embeded image available? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Image placeholders in the body of the mail message instead of the actual image: Outlook 2003 | Spin[_2_] | Outlook - General Queries | 1 | December 19th 08 01:43 AM |
Embeded Link to internet in Outlook | ddelong | Outlook - Installation | 3 | July 19th 08 03:54 PM |
all embeded URLs that are in Outlook e-mails fails | Al | Outlook Express | 2 | December 2nd 06 01:58 AM |
all embeded URLs that are in Outlook e-mails fails | Ann | Outlook Express | 0 | November 29th 06 10:45 PM |
Office Outlooks dont show embeded images in HTML format mail | tom | Outlook - General Queries | 0 | October 30th 06 08:13 PM |