请问用什么方法能发送带图片网页的电子邮件

finlandrbt
请问用什么方法能发送带图片网页的电子邮件

用php或者bash,或者其他什么程序或脚本.

发送网页,里面包含图片.

曾经尝试使用sendEmail,可以发送网页,但用-f参数增加上附件之后邮件格式就变成文本的了.

想问问如何发送带图片的网页,这个网页中的图片路径又该如何写呢?

望各位不吝赐教.非常感谢.

maxxfire
可以通过邮件编码进行解决:

[table=95%][tr][td][font=FixedSys]9.2 Example with absolute URIs to an embedded GIF picture
From: [email]foo1@bar.net[/email]
To: [email]foo2@bar.net[/email]
Subject: A simple example
Mime-Version: 1.0
Content-Type: Multipart/related; boundary="boundary-example-1";
type=Text/HTML; start=foo3*[email]foo1@bar.net[/email]
--boundary-example-1
Content-Type: Text/HTML;charset=US-ASCII
Content-ID: <foo3*[email]foo1@bar.net[/email]>
... text of the HTML document, which might contain a hyperlink
to the other body part, for example through a statement such as:
<IMG SRC="http://www.ietf.cnri.reston.va.us/images/ietflogo.gif"
ALT="IETF logo">
--boundary-example-1
Content-Location:
[img]http://www.ietf.cnri.reston.va.us/images/ietflogo.gif[/img]
Content-Type: IMAGE/GIF
Content-Transfer-Encoding: BASE64
R0lGODlhGAGgAPEAAP/////ZRaCgoAAAACH+PUNvcHlyaWdodCAoQykgMTk5
NSBJRVRGLiBVbmF1dGhvcml6ZWQgZHVwbGljYXRpb24gcHJvaGliaXRlZC4A
etc...
--boundary-example-1--[/font][/td][/tr][/table]


[table=95%][tr][td][font=FixedSys]9.4 Example using CID URL and Content-ID header to an embedded GIF
picture
From: [email]foo1@bar.net[/email]
To: [email]foo2@bar.net[/email]
Subject: A simple example
Mime-Version: 1.0
Content-Type: Multipart/related; boundary="boundary-example-1";
type=Text/HTML
--boundary-example-1
Content-Type: Text/HTML; charset=US-ASCII
... text of the HTML document, which might contain a hyperlink
to the other body part, for example through a statement such as:
<IMG SRC="cid:foo4*[email]foo1@bar.net[/email]" ALT="IETF logo">
--boundary-example-1
Content-ID: <foo4*[email]foo1@bar.net[/email]>
Content-Type: IMAGE/GIF
Content-Transfer-Encoding: BASE64
R0lGODlhGAGgAPEAAP/////ZRaCgoAAAACH+PUNvcHlyaWdodCAoQykgMTk5
NSBJRVRGLiBVbmF1dGhvcml6ZWQgZHVwbGljYXRpb24gcHJvaGliaXRlZC4A
etc...
--boundary-example-1--
[/font][/td][/tr][/table]

maxxfire
具体参阅rfc2110,MIME E-mail Encapsulation of Aggregate Documents