Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Guarantee Image in Email
Message
From
27/11/2015 14:46:45
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01627977
Message ID:
01628002
Views:
34
>>Hi,
>>
>>I have a system that sends out emails to my client's customers (it's actually a WPF application written in C# with SQL Server database). Some of the emails have images in them (I use a RTF control from Telerik to load the image and embed it in the email). Some of the customers do not see the image, either it displays as a little box, or as lots of numbers as characters.
>>
>>I have told my client that what they should do is have the image (or the entire email) available on their web site so that if anyone has these problems, they just click on a link in the email to see the email on-line. He uses Outlook for the Mac on his apple and it doesn't display the image, however his staff who use Outlook on Windows can see the images. If I send the images as an embedded image in an HTML email he can see it.
>>
>>My client is not happy. He says that he wants me to guarantee that the image will be visible in the email without having a link to the image/email on-line.
>>
>>Is this possible? I know there are a huge amount of email programs that people use, so how can I guarantee the image will display?
>>
>>This is the code I use:
>>
>>
//html = html + " <img src=cid:myImageID>";
>>                        msg.Subject = subject;
>>                        msg.Body = html;
>>                        msg.IsBodyHtml = true;
>>
>>                        AlternateView htmlView = AlternateView.CreateAlternateViewFromString(html, null, "text/html");
>>
>>                        //ContentType ct = new ContentType(MediaTypeNames.Image.Jpeg);
>>
>>                        //LinkedResource theEmailImage = new LinkedResource("D:\\Temp\\untitled.jpg", ct);
>>                        //theEmailImage.ContentId = "myImageID";
>>
>>                        ////Add the Image to the Alternate view
>>                        //htmlView.LinkedResources.Add(theEmailImage); 
>>
>>                        msg.AlternateViews.Add(htmlView);
>>
>>I remove the comments to embed the html iamge using the cid tag.
>
>Sounds like a problem at the recipient end.
>This seems to suggest it's not possible on Outlook for Mac : http://www.macworld.com/article/1048114/inlineoutlook.html
>
>But doesn't look too authoritive. Maybe there is setting which would allow this or maybe a different image format would work.
>Best google around :-{

Thanks Viv,

I have been googling on this for ages without finding anything definitive. Other people have had trouble seeing their images in gmail and hotmail.
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Reply
Map
View

Click here to load this message in the networking platform