Active sync sendMail command throws 103 status code

Here is my post request data :

<?xml version=\"1.0\" encoding=\"utf-8\"?>

    <SendMail xmlns=\"ComposeMail\">

        <ClientId>%d</ClientId>

        <SaveInSentItems/>

        <Mime>From: XXX@xxx.com To: XXX@xxx.com Subject: hello 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 Body Content.</Mime>

</SendMail>

Response i am getting :

<?xml version="1.0" encoding="utf-8" ?>

<SendMail xmlns="ComposeMail">

<Status xmlns="ComposeMail">103</Status>

</SendMail>

In header i am getting below header data :

    "Cache-Control" = private;

    "Content-Encoding" = gzip;

    "Content-Length" = 142;

    "Content-Type" = "application/vnd.ms-sync.wbxml";

    Date = "Tue, 10 Feb 2015 10:56:21 GMT";

    "MS-Server-ActiveSync" = "15.1";

    Server = "Microsoft-IIS/8.0";

    Vary = "Accept-Encoding";

    "X-AspNet-Version" = "4.0.30319";

    "X-BEServer" = BY2PR06MB903;

    "X-BackEndHttpStatus" = 200;

    "X-CalculatedBETarget" = "BY2PR06MB903.namprd06.prod.outlook.com";

    "X-DiagInfo" = BY2PR06MB903;

    "X-FEServer" = HKNPR06CA0061;

    "X-MS-ASError" = "Message = The element 'SendMail' in namespace 'ComposeMail:' cannot contain text. List of possible elements expected: 'Mime, AccountId' in namespace 'ComposeMail:' as well as 'TemplateID' in namespace 'RightsManagement:' as well as 'SaveInSentItems, ClientId' in namespace 'ComposeMail:'.; Severity = Error, Message = The element 'SendMail' in namespace 'ComposeMail:' has incomplete content. List of possible elements expected: 'Mime, ClientId' in namespace 'ComposeMail:'.; Severity = Error";

    "X-MS-BackOffDuration" = "L/-470";

    "X-Powered-By" = "ASP.NET";

    "request-id" = "cc8af9dc-c501-4dd5-837a-ebaee146cd3d";

Any help? 

February 10th, 2015 6:09am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics