Solved

Sending emails with inline images using Outlook 2010.

Posted on 2011-02-21
5
1,162 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Get an idea of what you should include in an email disclaimer with these Top 5 email disclaimer tips.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now