Solved

Sending emails with inline images using Outlook 2010.

Posted on 2011-02-21
5
1,168 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:gopalv
  • 3
5 Comments
 
LVL 12

Expert Comment

by:Hairbrush
ID: 34943774
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...
0
 

Author Comment

by:gopalv
ID: 34946794
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
0
 

Accepted Solution

by:
gopalv earned 0 total points
ID: 35081607
This is working fine now.
Closing the question
0
 

Author Closing Comment

by:gopalv
ID: 35126169
Issue fixed myself
0
 

Expert Comment

by:DCTec
ID: 37553455
It would be nice if you explain how you fixed your problem for all people with the same problem.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Read this checklist to learn more about the 15 things you should never include in an email signature.
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question