没有它被嵌入C#VSTO展望链接图像 [英] c# VSTO Outlook link image without it being embedded

查看:162
本文介绍了没有它被嵌入C#VSTO展望链接图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用增加的图像作为锚的HTML链接,但是当我点击发送,Outlook会自动在这使得它被捕获为垃圾邮件更容易受到邮件嵌入图像。

I am trying to add an HTML link with an image as the anchor, but when I hit send, Outlook automatically embeds the image in the email which makes it more susceptible to being caught as spam.

基本上当我添加的电子邮件,我得到的结果的这个家伙正在寻找默认,但用更少的代码(授予他想添加图像签名之后)

Basically when I add the email, I get the results this guy was looking for by default, but with less code (granted he wanted to add the image AFTER the signature)

下面是我的代码

var doc = Globals.ThisAddIn.Application.ActiveWindow().WordEditor;
var pic = doc.Application.Selection.InlineShapes.AddPicture("MY IMAGE URL", true);
doc.Application.Selection.Hyperlinks.add(pic, "MY URL");

这增加了图片,看起来不错,图片显示了权当用户打开电子邮件(不不必允许图像),但我一直在警告说,嵌入式图像被逮住为垃圾邮件很多,我已经看到了一些在发送的电子邮件中垃圾邮件箱中结束。

This adds the picture, looks great and the picture shows up right when the user opens the email (without having to Allow images) but I've been warned that embedded images get caught as spam a lot, and I've seen a number of the sent emails end up in spam boxes.

这是真的,嵌入式图像可能被捕获为垃圾邮件(我觉得奇怪的原因这是Outlook默认的方法看待,当你插入一些图片/图等等等等)?

Is this true that an embedded image is likely to be caught as spam (I find that weird cause this is the default way outlook handles when you insert some image/chart etc etc)?

如何可以插入像标准的HTML的图像(与不被嵌入在实际的电子邮件的图像,即使这意味着接收者具有以允许示出的图像)?我宁愿他们得到比有它最终成为垃圾邮件的电子邮件。

How can I insert an image like standard HTML (with the image not being embedded in the actual email, even if that means the recipient has to allow the image to be shown)? I would rather them get the email than have it end up as spam.

推荐答案

是的,这是真的,垃圾邮件过滤器有可能标记您的邮件为垃圾,除非你的电子邮件是一个白名单。原因是垃圾邮件发送者切换到把自己的(垃圾邮件)的文本变成一个大的图像,并发送,为避免检测。更多图片垃圾邮件,可以发现 rel=\"nofollow\">维基百科

Yes it is true that spam filters are likely to mark your mails as junk unless your email is on a whitelist. The reason is that spammers switched to putting their (spam)text into one big image and send that to avoid detection. More about image spam can be found here on wikipedia

我期望VSTO兑现这样做,但我不知道。 Outlook中的默认行为是嵌入所有图像。您可以通过更改注册表设置否决这个(展望2010)

I'm would expect VSTO to honour this as well but I'm not sure. The default behavior in outlook is to embed all images. You can overrule this by changing a registry setting (outlook 2010)

In key HKCU\Software\Microsoft\Office\14.0\Outlook\Options\Mail\
Add a REG_DWORD named "Send Pictures With Document"
Set the value to 0 

这篇关于没有它被嵌入C#VSTO展望链接图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆