【发布时间】:2018-07-10 13:00:08
【问题描述】:
我正在使用“mailsend v.1.19”向网络邮件客户端发送短信。 当我设置 mime-type 时,无论是带有消息正文还是单行消息,我都无法在原始电子邮件中找到它的任何痕迹。
e,g:
mailsend -smtp local-mail.com -f sender@sender.local -t receiver@receiver.local -sub "Another Test Email With HTML body and mime type set from file body" -msg-body ~/justbody.html -starttls -user xxx -pass xxxx -mime-type "text/html"
我故意不为测试目的设置 content-type。
我的 SMPT 摄取器将获得以下没有“text-html”迹象的原始流:
Received: from localhost (unknown [10.91.142.1])
by local-mail.dev.com (Postfix) with ESMTPS
for receiver@receiver.local; Wed, 31 Jan 2018 11:37:10 +0000 (UTC)
Subject: Another Test Email With HTML body and mime type set from file body
From: sender@sender.local
Date: Wed, 31 Jan 2018 11:37:10 +0000
To: receiver@receiver.local
X-Mailer: @(#) mailsend v1.19 (Unix)
X-Copyright: BSD. It is illegal to use this software for Spamming
Mime-version: 1.0
Content-Type: (null); charset=utf-8
我做错了什么?
【问题讨论】:
-
这看起来不像是一个编程问题;投票结束作为 Stack Overflow 的题外话。
-
您是否尝试将
-mime-type声明移到-attach之前?从查看文档来看,它看起来很模糊,也许这会有所作为。 -
没有附件,这是邮件本身的mime类型设置。
-
还有另一个选项:-attach file,mime_type,[i/a] (i=inline,a=attachment)
-
对,那么,您是否尝试将
-mime-type放在-msg-body之前?
标签: email command-line-interface mime-types email-client