SmartReply feature not working Error 110


  • Hi,

    I am trying to use the smart reply feature .

    I am sending the following xml string.

    The mail to which i am replying is having the ServerID "6:1" and collectionID "6"

    String xml="<?xml version=\"1.0\" encoding=\"utf-8\"?>"
                    +"<SmartReply xmlns=\"ComposeMail:\">"
                  +"<SaveInSentItems />"
                +"Subject:Re:test mail"+
                +"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 of the smart reply message."+"</MIME>"

    The reply which i am getting is:


    <?xml version="1.0" encoding="UTF-8" standalone="no"?><SendMail><Status>110</Status></SendMail>


    Please let me know what is the problem in my case. I have tried many things but it doesn't seem to work.



    7. února 2012 14:26


Všechny reakce

  • Hi Pankaj,

    Thanks for posting on the MSDN Forum. One of our support engineers will respond soon.

    Vilmos Foltenyi - MSFT

    7. února 2012 18:37
  • Hi Pankaj2021, I am the engineer who will be working with you on this issue. I am currently researching the problem and will provide you with an update soon. Thank you for your patience.

    Josh Curry (jcurry) | Escalation Engineer | Open Specifications Support Team

    7. února 2012 21:45
  • Hi Pankaj2021, the common status codes are defined in MS-ASCMD section 2.2.4. 110 means “ServerError: The server encountered an unknown error, the device SHOULD NOT retry later.” which isn't very helpful and could mean a lot of different things.

    However, just from looking at how you are building your string I can see that you are missing the CRLF (0x13, 0x10) line separator that is required at the end of each line in a MIME encoded string. Refer to RFC2045 for more information about MIME encoding.

    Josh Curry (jcurry) | Escalation Engineer | Open Specifications Support Team

    9. února 2012 18:30
  • Hi Josh,

    Thanks for your reply.

    I have been trying a few things myself.I tried using SendMail command too.

    I also tried to use the CRLF pattern at the end of line.

    Please refer to the xml string below but i am still getting the same error.


        String CRLF=""+(char)13+(char)10;

            String xml="<?xml version=\"1.0\" encoding=\"utf-8\"?>"
            +"<SendMail xmlns=\"ComposeMail:\">"
            +"  <ClientId>6136194</ClientId>"
              +"<SaveInSentItems />"
              +" <MIME>From: XXXXXXX"+CRLF
              +"Cc: "+CRLF
              +"Bcc: "+CRLF
              +"Subject: "+CRLF
              +"MIME-Version: 1.0"+CRLF
              +"Content-Type: text/plain; charset=\"iso-8859-1\"" +CRLF
              +"Content-Transfer-Encoding: 7bit"+CRLF
              +"X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350"+CRLF
              +"This is the e-mail body content.</MIME>"


    The reply xml was

    <?xml version="1.0" encoding="UTF-8" standalone="no"?><SendMail><Status>110</Status></SendMail>

    Plz have a look and let me know if there is something wrong in the xml.

    Also if i am sending a mail to a person like "" then is it mandatory to include the angle brackets in mime message i.e. <>

    I am able to do run all other commands like settings,policies,foldersync etc. but mail commands doesn't seem to work .

    Thanks in advance for your help.


    10. února 2012 4:10
  • Hi Josh,

    To make the debugging easier i am putting the xml and its WBXML which i am sending.

    Plz have a look and provide any suggestions.

            String CRLF="&#13;"+(char)10;
            String xml="<?xml version=\"1.0\" encoding=\"utf-8\"?>"
              +"<SendMail xmlns=\"ComposeMail:\">"
              +"<SaveInSentItems />"
              +"From: &lt;;"+CRLF
              +"To: &lt;;"+CRLF
              +"Subject:adds "+CRLF
              +"Date: Fir, 10 Feb 2012 19:10:31 -0400"+CRLF
              +"Message-ID: messageidsimple"+CRLF
              +"MIME-Version: 1.0"+CRLF
              +"Content-Type: text/plain;"+CRLF
              +"    charset=\"iso-8859-1\"" +CRLF
              +"Content-Transfer-Encoding: 8bit"+CRLF
              +"X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350"+CRLF+CRLF
              +"This is the e-mail body content."+CRLF+CRLF+"</MIME>"


    0x3 0x1 0x6a 0x0 0x0 0x15 0x45 0x51 0x3 0x73 0x61 0x64 0x66 0x73 0x36 0x31 0x33 0x36 0x31 0x39 0x34 0x0 0x1 0x8 0x50 0x3 0x46 0x72 0x6f 0x6d 0x3a 0x20 0x3c 0x78 0x78 0x78 0x40 0x79 0x79 0x79 0x2e 0x63 0x6f 0x6d 0x3e 0xd 0xa 0x54 0x6f 0x3a 0x20 0x3c 0x78 0x78 0x78 0x40 0x79 0x79 0x79 0x2e 0x63 0x6f 0x6d 0x3e 0xd 0xa 0x53 0x75 0x62 0x6a 0x65 0x63 0x74 0x3a 0x61 0x64 0x64 0x73 0x20 0xd 0xa 0x44 0x61 0x74 0x65 0x3a 0x20 0x46 0x69 0x72 0x2c 0x20 0x31 0x30 0x20 0x46 0x65 0x62 0x20 0x32 0x30 0x31 0x32 0x20 0x31 0x39 0x3a 0x31 0x30 0x3a 0x33 0x31 0x20 0x2d 0x30 0x34 0x30 0x30 0xd 0xa 0x4d 0x65 0x73 0x73 0x61 0x67 0x65 0x2d 0x49 0x44 0x3a 0x20 0x6d 0x65 0x73 0x73 0x61 0x67 0x65 0x69 0x64 0x73 0x69 0x6d 0x70 0x6c 0x65 0xd 0xa 0x4d 0x49 0x4d 0x45 0x2d 0x56 0x65 0x72 0x73 0x69 0x6f 0x6e 0x3a 0x20 0x31 0x2e 0x30 0xd 0xa 0x43 0x6f 0x6e 0x74 0x65 0x6e 0x74 0x2d 0x54 0x79 0x70 0x65 0x3a 0x20 0x74 0x65 0x78 0x74 0x2f 0x70 0x6c 0x61 0x69 0x6e 0x3b 0xd 0xa 0x9 0x63 0x68 0x61 0x72 0x73 0x65 0x74 0x3d 0x22 0x69 0x73 0x6f 0x2d 0x38 0x38 0x35 0x39 0x2d 0x31 0x22 0xd 0xa 0x43 0x6f 0x6e 0x74 0x65 0x6e 0x74 0x2d 0x54 0x72 0x61 0x6e 0x73 0x66 0x65 0x72 0x2d 0x45 0x6e 0x63 0x6f 0x64 0x69 0x6e 0x67 0x3a 0x20 0x38 0x62 0x69 0x74 0xd 0xa 0x58 0x2d 0x4d 0x69 0x6d 0x65 0x4f 0x4c 0x45 0x3a 0x20 0x50 0x72 0x6f 0x64 0x75 0x63 0x65 0x64 0x20 0x42 0x79 0x20 0x4d 0x69 0x63 0x72 0x6f 0x73 0x6f 0x66 0x74 0x20 0x4d 0x69 0x6d 0x65 0x4f 0x4c 0x45 0x20 0x56 0x36 0x2e 0x30 0x30 0x2e 0x32 0x39 0x30 0x30 0x2e 0x33 0x33 0x35 0x30 0xd 0xa 0xd 0xa 0x54 0x68 0x69 0x73 0x20 0x69 0x73 0x20 0x74 0x68 0x65 0x20 0x65 0x2d 0x6d 0x61 0x69 0x6c 0x20 0x62 0x6f 0x64 0x79 0x20 0x63 0x6f 0x6e 0x74 0x65 0x6e 0x74 0x2e 0xd 0xa 0xd 0xa 0x0 0x1 0x1

    Thanks & Regards,


    10. února 2012 8:56
  • Hi Pankaj,

    While Josh is on another project, I will look into this for you.  I have all the information you shared with Josh and will get back to you soon after I've tested some of this.

    Best regards,
    Tom Jebo
    Escalation Engineer
    Microsoft Open Specifications

    20. února 2012 18:24
  • Hi Tom,

    Please let me know if you want me to try something out. I am working at my end but am not able to figure out the issue.

    Thanks ,

    24. února 2012 6:32
  • Hi Pankaj,

    Sorry for the delay, I hope to have something for you soon.


    24. února 2012 15:17
  • Hi Pankaj,

    Sorry about the delay, the problem turns out to be that you need to wrap the data inside the <Mime> tags in a CDATA section.  This will tell Exchange that this data is a blob and Exchange will process it properly.  Here's an example:

    <?xml version="1.0" encoding="utf-8"?><SendMail xmlns="ComposeMail:"><ClientId>sadfs613619C</ClientId><SaveInSentItems/><Mime>
    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 e-mail body content.]]>

    Once you do this, you should be able to get past the 110 status. 

    The sample code in [MS-ASCMD] doesn't include the CDATA section and so we will update these samples to reflect the correct code.

    Thanks for bringing this to our attention,


    29. února 2012 18:33
  • Hi Tom,

    Thanks a lot for your help.

    I tried the above solution and still got the error. It might be something wrong in my setup. Can you please send a sample WBXML for the above xml so that i can do a comparison.

    Thanks in advance.

    Best Regards,


    7. března 2012 5:33
  • Pankaj,

    You may need to send a Provision command first.  Also, in the above SendMail request, is fictitious.  In my test, I used an existing account.  If you still need the WBXML, please send email to dochelp at Microsoft dot com, referencing this thread and my name.  I will send you the WBXML via email.

    Tom Jebo

    7. března 2012 15:11