Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Guarantee Image in Email
Message
De
27/11/2015 12:13:55
 
 
À
27/11/2015 06:51:42
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 4.0
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01627977
Message ID:
01627994
Vues:
43
>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 :-{
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform