×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

It's not a dumb question, don't make me look any less smart.. ;-) This has to do with MIME and Multi-part email. Many scripting languages support that. If you intend to hand code it, it should look like this:

本文发表在 rolia.net 枫下论坛Received: from mail pickup service by gentree2 with Microsoft SMTPSVC;
Sat, 24 Jul 2004 16:13:30 +0800
From: <abc@abc.com>
To: <cde@cde.com>
Subject: Test Send Email
Date: Sat, 24 Jul 2004 16:13:29 +0800
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0012_01C47199.28993240"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Message-ID: <LOHabXkwi8Be0z00000016@LOH>
X-OriginalArrivalTime: 24 Jul 2004 08:13:30.0031 (UTC) FILETIME=[1A94EBF0:01C47156]

This is a multi-part message in MIME format.

------=_NextPart_000_0012_01C47199.28993240
Content-Type: text/plain;
charset="iso-2022-jp"
Content-Transfer-Encoding: 7bit

?a?s?u?A???` (this is the modified unicode, please advice, originally is &#8249;&#226;&#141;s&#338;&#251;&#141;&#192;–&#188;&#8249;`)

------=_NextPart_000_0012_01C47199.28993240
Content-Type: text/html;
charset="iso-2022-jp"
Content-Transfer-Encoding: quoted-printable

<HTML><HEAD><!-- <META HTTP-EQUIV=3D"Content-Type" =
content=3D"text/html;charset=3Diso-8859-1"> --><META =
HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
CHARSET=3Dshift_jis"></HEAD><BODY>?a?s?u?A???`</BODY></HTML> (this is the modified unicode, please advice)
------=_NextPart_000_0012_01C47199.28993240--更多精彩文章及讨论,请光临枫下论坛 rolia.net
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / 一个弱智问题
    在unix下面编辑一个文本文件,我想用cat filename|mail -s "reminder" xxxx@xxx.xxx方法发送邮件出去,我现在想让outlook显示html格式(filename文件是html的),但outlook收到后,显示的是里面的编写的html代码,如何解决?谢谢
    • ^
      • It's not a dumb question, don't make me look any less smart.. ;-) This has to do with MIME and Multi-part email. Many scripting languages support that. If you intend to hand code it, it should look like this:
        本文发表在 rolia.net 枫下论坛Received: from mail pickup service by gentree2 with Microsoft SMTPSVC;
        Sat, 24 Jul 2004 16:13:30 +0800
        From: <abc@abc.com>
        To: <cde@cde.com>
        Subject: Test Send Email
        Date: Sat, 24 Jul 2004 16:13:29 +0800
        MIME-Version: 1.0
        Content-Type: multipart/alternative;
        boundary="----=_NextPart_000_0012_01C47199.28993240"
        X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
        Message-ID: <LOHabXkwi8Be0z00000016@LOH>
        X-OriginalArrivalTime: 24 Jul 2004 08:13:30.0031 (UTC) FILETIME=[1A94EBF0:01C47156]

        This is a multi-part message in MIME format.

        ------=_NextPart_000_0012_01C47199.28993240
        Content-Type: text/plain;
        charset="iso-2022-jp"
        Content-Transfer-Encoding: 7bit

        ?a?s?u?A???` (this is the modified unicode, please advice, originally is &#8249;&#226;&#141;s&#338;&#251;&#141;&#192;–&#188;&#8249;`)

        ------=_NextPart_000_0012_01C47199.28993240
        Content-Type: text/html;
        charset="iso-2022-jp"
        Content-Transfer-Encoding: quoted-printable

        <HTML><HEAD><!-- <META HTTP-EQUIV=3D"Content-Type" =
        content=3D"text/html;charset=3Diso-8859-1"> --><META =
        HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
        CHARSET=3Dshift_jis"></HEAD><BODY>?a?s?u?A???`</BODY></HTML> (this is the modified unicode, please advice)
        ------=_NextPart_000_0012_01C47199.28993240--更多精彩文章及讨论,请光临枫下论坛 rolia.net