Tre*_*key 7 linux email ubuntu mailx cl
我想发送一封HTML电子邮件.
有一个纯文本文件,如下所示:
From: "name" <name@email.com>
To: name@email.com
Subject: First Email
MIME-Version: 1.0
Content-Type: text/html; charset=us-ascii
Content-Disposition: inline
<strong>Hello, World!</strong>
Run Code Online (Sandbox Code Playgroud)
我mailx像这样跑,
mailx -t -S smtp=server.com name@email.com < file
Run Code Online (Sandbox Code Playgroud)
它发送一个纯文本电子邮件,然后打印:
Ignoring header field "MIME-Version: 1.0"
Ignoring header field "Content-Type: text/html; charset=us-ascii"
Ignoring header field "Content-Disposition: inline"
Run Code Online (Sandbox Code Playgroud)
为什么?
如何发送HTML电子邮件?
其他消息来源说使用-a标志并指定内容类型,
但-a在我的版本mailx是附件; 所以这不起作用.
| 归档时间: |
|
| 查看次数: |
419 次 |
| 最近记录: |