Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to Identify Mail Language?

How to Identify Mail Language?

Scheduled Pinned Locked Moved C#
questionsysadminxmlhelptutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ArunkumarSundaravelu
    wrote on last edited by
    #1

    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"); ///////////////////////

    L 1 Reply Last reply
    0
    • A ArunkumarSundaravelu

      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"); ///////////////////////

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      By now CodeProject has an expert[^] on this.

      Luc Pattyn [My Articles] [Forum Guidelines]

      A 1 Reply Last reply
      0
      • L Luc Pattyn

        By now CodeProject has an expert[^] on this.

        Luc Pattyn [My Articles] [Forum Guidelines]

        A Offline
        A Offline
        ArunkumarSundaravelu
        wrote on last edited by
        #3

        please share ur suggestion with us regarding above problem Regards Arunkumar Sundaravelu

        L 1 Reply Last reply
        0
        • A ArunkumarSundaravelu

          please share ur suggestion with us regarding above problem Regards Arunkumar Sundaravelu

          L Offline
          L Offline
          leckey 0
          wrote on last edited by
          #4

          what he is trying to tell you is to use the Search capability within this website.

          __________________ Bob is my homeboy.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups