<?xml version="1.0" encoding="utf-8"?>
<SendMail xmlns="ComposeMail:" xmlns:airsync="AirSync">
<ClientId>34234243</ClientId>
<SaveInSentItems />
<Mime>
From:[email protected]
To:[email protected]
Subject:342234 MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: base64
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 234234
This is body
</Mime>
</SendMail>
我正在使用SendEmail命令。我正在寻找将Mime内容发送到服务器的方法。我努力了:
<?xml version="1.0" encoding="utf-8"?>
<SendMail xmlns="ComposeMail:" xmlns:airsync="AirSync"><ClientId>34234243</ClientId>
<SaveInSentItems/>
<Mime>
text encode base 64
</Mime>
</SendMail>
并转换为wbxml,发送到服务器并接收错误代码119,表示:MessageHasNoRecipient
正在发送的邮件不包含收件人。
有人帮忙吗?提前致谢
最佳答案
我确定您的代码中“To”关键字之前有一个空白字符。
让我们删除它。在将数据编码为base64编码之前,数据必须看起来像这样:
From: [email protected]
To: [email protected]
Subject: Mail Subject
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64
Test body
最好的祝福,