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#
sysadminhelptutorialquestion
5 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

    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

    P M 2 Replies Last reply
    0
    • A ArunkumarSundaravelu

      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

      P Offline
      P Offline
      Paddy Boyd
      wrote on last edited by
      #2

      I don't think you can recover the language, but you should be able to get to the character encoding.

      A 1 Reply Last reply
      0
      • P Paddy Boyd

        I don't think you can recover the language, but you should be able to get to the character encoding.

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

        thanks Boyd for kind your response. Did you know which mapi property to identify the character set encoding Thanks Arunkumar Sundaravelu

        1 Reply Last reply
        0
        • A ArunkumarSundaravelu

          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

          M Offline
          M Offline
          Muammar
          wrote on last edited by
          #4
                      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) (><)

          A 1 Reply Last reply
          0
          • M Muammar
                        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) (><)

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

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

            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