4.4 SendMail Request and Response
The following example illustrates the command to send mail to a specific user.
Request
-
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