Link to home
Start Free TrialLog in
Avatar of gopalv
gopalvFlag for India

asked on

Sending emails with inline images using Outlook 2010.

Hello all,

I am facing an issue with my application. I can't send emails with inline images using Outlook 2010.
I have upgraded my Office 2007 to Office 2010 two weeks before. The application was working fine with office 2007 and 2003. The issue started from the Office 2010 installation.

I was using the MAPI Session object to upload the inline images with outlook 2007. But now I can't do that. Even the MAPI installation is not succeeding. It is telling that I have to keep Office 2007 to complete the installation. I had uninstalled the 2007 version.

Can anybody suggest me a way to implement this on outlook 2010?.


Thanks
Avatar of Hairbrush
Hairbrush
Flag of Jersey image

Looking at http://msdn.microsoft.com/en-gb/library/ee692174.aspx#OfficeOutlook2010ObjectModelChanges I don't think there are any breaking changes in Outlook 2010, so your code that ran fine in Outlook 2007 should run unaltered in 2010.

It sounds like there is a problem with your Office 2010 installation after your upgrade, and that is what is preventing your code from running.  Do you have a clean machine that you can try it on?  I would suggest that rather than trying to rewrite your code...
Avatar of gopalv

ASKER

Hi,
   Here are some additional details/clarifications.:

1. My code to generate emails that worked in outlook 2007 is working just fine on outlook 2010.
2. I used the MAPI component (CDO 1.2.1) avaialbel for outlook 2003 & 2007 only in instaces where there was an embedded image in the body of the email - http://www.microsoft.com/downloads/en/details.aspx?FamilyID=2714320d-c997-4de1-986f-24f081725d36&DisplayLang=en 

NOTE: embedded images work if I provide a public url i.e. http://someserver/image.jpg but the image I provide as a local path reference (c:\image.jpg) does not show correctly.

3. I am not able to install CDO 1.2.1 on my machine with Outlook 2010. it says its not supported - http://blogs.msdn.com/b/deva/archive/2010/01/19/outlook-2010-why-cdo-1-2-1-not-supported-with-outlook-2010.aspx
http://support.microsoft.com/kb/2028411

As a result, any emails with embedded images in them show up with a red x where the image should be placed and the image that should be embedded shows up as an attachment instead. See attached screenshot.

The image at teh beginnign of the email body is a local image and the image at the bottom of the body (that displays correctly) is an image from a public url.

Any feedback is appreciated.
embeddedimages-outlook2010issue.png
ASKER CERTIFIED SOLUTION
Avatar of gopalv
gopalv
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gopalv

ASKER

Issue fixed myself
Avatar of DCTec
DCTec

It would be nice if you explain how you fixed your problem for all people with the same problem.