Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

2.2.2.15 SendMail

The SendMail command is used by clients to send MIME-formatted email messages to the server. The body of the request differs depending on the value of the MS-ASProtocolVersion header, as specified in [MS-ASHTTP] section 2.2.1.1.2.4.

If the MS-ASProtocolVersion header is set to "12.1", the body of the SendMail request is the MIME representation of the message to be sent. In this case, the client sets the Content-Type header to "message/rfc822".

If the MS-ASProtocolVersion header is set to "14.0" or "14.1", the body of the SendMail request is WBXML data generated by using the XML elements specified in the table below.

Clients SHOULD NOT save messages directly to the local Sent Items folder; instead, clients SHOULD use the SaveInSentItems element (section 2.2.3.144) to automatically save the messages on the server. It is not possible to reconcile the local Sent Items folder with the server's Sent Items folder by using the Sync command (section 2.2.2.19). Items in the server's Sent Items folder can be added to the client by using the Sync command, but it is not possible to add items that are in the local Sent Items folder to the server.

Note that the From: MIME header in the outgoing message is set on the server to the primary email address of the authenticated user.

The ComposeMail namespace is the primary namespace for this section. Elements referenced in this section that are not defined in the ComposeMail namespace use the namespace prefixes defined in section 2.2.1.

The following table lists the elements that are used in SendMail command requests and responses.

Element name

Scope

Reference

SendMail

Request and Response

section 2.2.3.148

ClientId

Request

section 2.2.3.28.1

AccountId

Request

section 2.2.3.3.1

SaveInSentItems

Request

section 2.2.3.144

Mime

Request

section 2.2.3.99

Status

Response

section 2.2.3.162.13

The XML schema for the SendMail command request is described in section 6.32. The XML schema for the SendMail command response is described in section 6.33. If the message was sent successfully, the server returns an empty response.

HTTP/1.1 200 OK
Date: Thu, 03 Sep 2009 21:05:44 GMT
Content-Length: 0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.