相关疑难解决方法(0)

电子邮件签名中的base64编码图像

我必须在电子邮件签名中包含一些图像(公司徽标等).我使用由相关电子邮件系统生成的嵌入图像(它们通常作为附件发送)和链接图像(需要在收到的电子邮件中显示它们的权限)存在各种各样的问题.

我刚刚看到来自交易所的一些电子邮件,其中包含徽标的base64图像表示,并使用标签进行显示.如果可能的话,我正在寻找一些关于如何在电子邮件签名中执行此操作的信息(如何为一个开始生成徽标的base64版本以及我需要使用哪些代码才能使其工作)?

我尝试过简单的事情,比如

<body>
<span>
<img src=.... >
</span>
</body>
Run Code Online (Sandbox Code Playgroud)

但我得到的是替代文字,所以我显然在这里做错了.

html email base64 image

87
推荐指数
2
解决办法
16万
查看次数

在邮件正文中插入图像

用户点击发送按钮时如何在邮件正文中插入图像.我正在使用php邮件

html php phpmailer

15
推荐指数
2
解决办法
7万
查看次数

仅保存Outlook MailItem的REAL附件

我目前正在开发一个Outlook Addin,它可以在我的MSSQL数据库中保存MailItems和Attachments.

我有一个方法,我用它的所有附件保存MailItem.但是,如果我保存所有附件,也会保存MailItem中的嵌入图像.

有谁知道如何保存所有真正的附件?我的意思是像下图中的附件:

在此输入图像描述

而不是邮件正文中的嵌入图像.

这是我用来循环遍历MailItem的所有附件然后保存它的代码:

foreach (Outlook.Attachment att in mailItem.Attachments)
{
      try
      {
          att.SaveAsFile(Path.GetTempPath() + att.FileName);

          var fi = new FileInfo(Path.GetTempPath() + att.FileName);

          //Saving attachment to DB
          var attachment = Attachment.NieuwAttachment(att.FileName, SelectedMap.DossierNr.ToString( CultureInfo.InvariantCulture), -1, Convert.ToInt32(SelectedMap.Tag), fi);
          if (!Attachment.InlezenAttachment(attachment)) continue;

          OutlookCategories.AddAttachmentCategory(mailItem);
      }
      catch (Exception ex)
      {
          var dmsEx = new DmsException("Er is een fout opgetreden bij het opslaan van een bijlage.", ex.Message, ex);
          ExceptionLogger.LogError(dmsEx);
      }
 }
Run Code Online (Sandbox Code Playgroud)

谢谢!

-----------编辑------------

我还在Microsoft TechNet上发布了这个问题,我刚刚收到了问题的答案(参见下面的链接)

Outlook 2007和2010:保存除嵌入式附件C#以外的所有附件

-----------编辑------------

我的问题仍然没有解决,我从微软获得的帮助是没用的.所以,我真的需要这个修复!

c# outlook attachment

10
推荐指数
1
解决办法
4025
查看次数

使用linux命令在电子邮件中嵌入图像

有没有一种方法嵌入图像转换成使用诸如Linux命令的电子邮件的正文muttsendmail

我用过这个

mutt -e 'set content_type="text/image"' \
   u.mohan@6dtech.co.in -s "TEST" \
    -i image001.jpg < data.txt
Run Code Online (Sandbox Code Playgroud)

但它不起作用.

linux email sendmail

7
推荐指数
2
解决办法
2万
查看次数

使用cfmail时显示图像?

我正在尝试在发送电子邮件时显示图像.发送电子邮件有效,但在图像中显示为空白.我知道'src'网址是正确的,因为我在其他地方有它并且显示.如何在发送电子邮件时使其正常工作?

<CFMAIL TO="email"
        FROM="email"
        SUBJECT="test"
        TYPE="HTML">
        <table>
        <tr><img src="icon_star.gif" alt="star" width="10" height="10">
            <td valign="top" ><font face="Arial, Helvetica, sans-serif" size="2">   <strong>Rising Star Award: #risingstar#</strong></font></td>
            <td valign="top" ><font face="Arial, Helvetica, sans-serif" size="2"><strong>#risingstar_ave#</strong></font></td>
        </tr>
        ....more code ...
Run Code Online (Sandbox Code Playgroud)

coldfusion cfmail

3
推荐指数
1
解决办法
152
查看次数

如何删除损坏的图像框?

我试图建立一个电子邮件模板,其中我必须向其他邮件客户端显示一些图像(例如,Outlook,Thunderbird ...)。现在的问题是,当这些客户端当时不允许显示图像时,破碎的图像框正在显示,而我不想显示。

我也曾提到

参考链接1如何删除Webkit中损坏图像的边框?

引用的链接[2]:输入type =“ image”在Chrome中显示不需要的边框,在IE7中显示断开的链接

引用链接[3]:如何停止显示损坏的图像

但找不到任何适当的输出。注意:我不能使用div标签。我必须使用表格标签。

代码我在用什么:

<table style="background:#fff; width:600px; margin:auto auto;">
<tr>
    <td>
    <a href="http://www.sampleurl.com">
    <img src="http://sampleimageurl.com/sampleimage.png" height="55" width="198" />
    </a>
    </td>
    <td style="text-align:right;"><a href="http://www.sampleurl.com" target="_blank">
        <span style="font-family:Myriad Pro; color:#0d5497; font-size:20px;">www.sampleurl.com</span>
    </td>
</tr>

<!--<tr>
    <td colspan="2" style="height:1px; background: #0d5497;"></td>

</tr>-->
Run Code Online (Sandbox Code Playgroud)

输出我得到的。 在此处输入图片说明

html css html5 html-table css3

2
推荐指数
2
解决办法
9873
查看次数

如何在邮件内容中显示图像?

我想在内容中发送包含一些图像的电子邮件.我想我必须将此图像作为电子邮件的附件附加,但我的问题是如何在邮件内容中使用附加图像?

发送邮件的代码

WebMail.SmtpServer = "my.smtp.server";
WebMail.Send(
        clientEmail,
        subject,
        "<html><head></head><body><img src='???' /></body></html>",
        myEmail,
        null,
        new List<string> () { "path" },
        true
    );
Run Code Online (Sandbox Code Playgroud)

我必须写src什么?

任何帮助,将不胜感激.

c# email webmail

1
推荐指数
1
解决办法
1876
查看次数

标签 统计

email ×3

html ×3

c# ×2

attachment ×1

base64 ×1

cfmail ×1

coldfusion ×1

css ×1

css3 ×1

html-table ×1

html5 ×1

image ×1

linux ×1

outlook ×1

php ×1

phpmailer ×1

sendmail ×1

webmail ×1