How to Identify mail Language?
-
Hi I'm using webdav method to fetch mails from exchange server and same as send mails. My problem is - if in the mail in exchange server is in spanish langugae how to identify that mail is spanish mail. Which property is used to identify mail language. Any suggestions please. Regards Arunkumar Sundaravelu
-
Hi I'm using webdav method to fetch mails from exchange server and same as send mails. My problem is - if in the mail in exchange server is in spanish langugae how to identify that mail is spanish mail. Which property is used to identify mail language. Any suggestions please. Regards Arunkumar Sundaravelu
I don't think you can recover the language, but you should be able to get to the character encoding.
-
I don't think you can recover the language, but you should be able to get to the character encoding.
thanks Boyd for kind your response. Did you know which mapi property to identify the character set encoding Thanks Arunkumar Sundaravelu
-
Hi I'm using webdav method to fetch mails from exchange server and same as send mails. My problem is - if in the mail in exchange server is in spanish langugae how to identify that mail is spanish mail. Which property is used to identify mail language. Any suggestions please. Regards Arunkumar Sundaravelu
-
YourMessage.BodyEncoding = System.Text.Encoding.ASCII;
Make sure you do it before sending, "I'm using Latin letters here".
Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)
Hi Muammar thanks for your response. The property as you mentioned is "BodyEncoding". which was not found in webdav method, how can i fetch the value of the BodyEncoding Property. I use the below coding using search method of webdav. Please suggest me. ///////////////////< string strXML; string strInboxURL = "http" + "://" + strServerName + "/exchange/" + strUserName + "/" + strFolderName; MSXML2.XMLHTTP objXMLHTTP = new MSXML2.XMLHTTP(); System.Xml.XmlDataDocument xmlDOMParams = new System.Xml.XmlDataDocument(); objXMLHTTP.open("SEARCH", strInboxURL, false, strAliasName,strPassword); objXMLHTTP.setRequestHeader("Content-type", "text/xml"); objXMLHTTP.setRequestHeader("Depth", "1"); strXML = "" + " = \'DAV:\'>" + "" + "SELECT \"urn:schemas:httpmail:fromemail\"," + "\"urn:schemas:mailheader:cc\"," + // "\"urn:schemas:httpmail:displayto\"," + "\"urn:schemas:mailheader:thread-topic\"," + "\"urn:schemas:httpmail:to\"," + "\"DAV:displayname\"" + " FROM scope(\'shallow traversal of " + "\"" + strInboxURL + "\"\')" + " WHERE \"DAV:ishidden\"=" + "false" + " AND \"urn:schemas:httpmail:read\"=" + "false" + " AND \"DAV:isfolder\"=" + "false"+ "" + ""; objXMLHTTP.send(strXML); xmlDOMParams.LoadXml(objXMLHTTP.responseText); xmlDOMParams.Save("D:\\Test.xml"); ///////////////////////