Java - 使用ActiveSync命令发送电子邮件

时间:2013-07-23 07:27:41

标签: email send activesync

我尝试使用ActiveSync命令发送电子邮件。 我找到了文件说明请求和回复:

POST /Microsoft-Server-ActiveSync?Cmd=SendMail&User=fakeusername&DeviceId=v140Device&DeviceType=SmartPhone HTTP/1.1
Content-Type: application/vnd.ms-sync.wbxml
MS-ASProtocolVersion: 14.0
X-MS-PolicyKey: 2034202722
User-Agent: ASOM
Host: BIRSKK-dom.extest.microsoft.com

<?xml version="1.0" encoding="utf-8"?>
<SendMail 
xmlns="ComposeMail:">
  <ClientId>633724606026842453</ClientId>
  <Mime>From: fakeuser@Contoso.com
To: fakeuser@Contoso.com
Cc:
Bcc:
Subject: From NSync
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350
This is the body text.</Mime>
</SendMail>
Response
HTTP/1.1 200 OK
s
Date: Thu, 12 Mar 2009 20:16:22 GMT
Content-Length: 0

我不知道如何实施。 对我有什么想法吗?请帮助我!

0 个答案:

没有答案