none
Exchange ActiveSync SendMail command RRS feed

  • Question

  • Please, I'm trying to send mail through Exchange ActiveSync SendMail command, but always returns status 110. I have no problems in the Provision and SyncFolder but SendMail not possible.

    someone has a SendMail example in C #

    these are the requests and responses:

    Supported ActiveSync versions: 2.0,2.1,2.5,12.0,12.1,14.0,14.1

    Supported ActiveSync commands: Sync,SendMail,SmartForward,SmartReply,GetAttachment,GetHierarchy,CreaeCollection,
    DeleteCollection,MoveCollection,FolderSync,FolderCreate,FolderDelete,FolderUpdate,MoveItms,GetItemEstimate,
    MeetingResponse,Search,Settings,Ping,ItemOperations,Provision,ResolveRecipients,VlidateCert

    Policy retrieved from the server.
    Temporary policy key: 2870407999

    Policy acknowledgment successful.
    Permanent Policy Key: 3084455987

    ++++++++++++++++++++++++++++++++++
    SendMail Request:

    Method  "POST"
    https://owa.server.com/Microsoft-Server-ActiveSync?Cmd=SendMail&User=usuario&DeviceId=EX2010activesyncfoldercs&DeviceType=Sample Application

    Content-Type: application/vnd.ms-sync.wbxml
    User-Agent: ASOM
    MS-ASProtocolVersion: 14.1
    X-MS-PolicyKey: 3084455987
    Host: owa.server.com

    ++++++

    03 01 6A 00 00 15 45 51 03 31 32 33 34 35 36 00 01 08 50 03 46 72 6F 6D 3A 20 66 72 6F 6D 40 73 65 
    72 76 69 64 6F 72 2E 63 6F 6D 0A 54 6F 3A 20 74 6F 40 73 65 72 76 69 64 6F 72 2E 63 6F 6D 0A 53 75 
    62 6A 65 63 74 3A 20 3D 3F 77 69 6E 64 6F 77 73 2D 31 32 35 35 3F 51 3F 41 73 75 6E 74 6F 5F 2D 5F 
    50 72 75 65 62 61 5F 64 65 5F 65 6E 76 69 6F 3D 46 45 3F 3D 0A 43 6F 6E 74 65 6E 74 2D 54 79 70 65 
    3A 20 74 65 78 74 2F 70 6C 61 69 6E 3B 20 63 68 61 72 73 65 74 3D 22 69 73 6F 2D 38 38 35 39 2D 31 
    22 0A 0A 4D 49 4D 45 2D 56 65 72 73 69 6F 6E 3A 20 31 2E 30 0A 43 6F 6E 74 65 6E 74 2D 54 72 61 6E 
    73 66 65 72 2D 45 6E 63 6F 64 69 6E 67 3A 20 37 62 69 74 0A 58 2D 4D 69 6D 65 4F 4C 45 3A 20 50 72 
    6F 64 75 63 65 64 20 42 79 20 4D 69 63 72 6F 73 6F 66 74 20 4D 69 6D 65 4F 4C 45 20 56 36 2E 30 30 
    2E 32 39 30 30 2E 33 33 35 30 0A 43 75 65 72 70 6F 20 2D 20 50 72 75 65 62 61 20 64 65 20 65 6E 76 
    69 6F 2E 00 01 01

    ++++++

    <?xml version="1.0" encoding="utf-8"?>
    <SendMail xmlns="ComposeMail:">
      <ClientId>123456</ClientId>
      <SaveInSentItems />
      <Mime>From: from@servidor.com
    To: to@servidor.com
    Subject: =?windows-1255?Q?Asunto_-_Prueba_de_envio=FE?=
    Content-Type: text/plain; charset="iso-8859-1"
    MIME-Version: 1.0
    Content-Transfer-Encoding: 7bit
    X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350
    Cuerpo - Prueba de envio.</Mime>
    </SendMail>

    ++++++++++++++++++++++++++++++++++
    SendMail Response:

    <?xml version="1.0" encoding="utf-8"?>
    <SendMail xmlns="ComposeMail">
      <Status>110</Status>
    </SendMail>
    ++++++++++++++++++++++++++++++++++

    Friday, September 13, 2013 4:58 PM

Answers