How to Identify Mail Language?
-
I'm using webdav method to fetch mails from exchange server and same as send mails. My problem is - if 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 The property "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"); ///////////////////////
-
I'm using webdav method to fetch mails from exchange server and same as send mails. My problem is - if 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 The property "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"); ///////////////////////
By now CodeProject has an expert[^] on this.
Luc Pattyn [My Articles] [Forum Guidelines]
-
By now CodeProject has an expert[^] on this.
Luc Pattyn [My Articles] [Forum Guidelines]
please share ur suggestion with us regarding above problem Regards Arunkumar Sundaravelu
-
please share ur suggestion with us regarding above problem Regards Arunkumar Sundaravelu