Is it possible to read .eml files in .net

后端 未结 3 1444
悲&欢浪女
悲&欢浪女 2021-01-06 03:48

I would like to know if it is possible to parse .eml and .msg files in dot net (preferably from a memorystream) such that I can use them on an ASP.Net page.

3条回答
  •  滥情空心
    2021-01-06 04:26

    Yes you can. They are just regular text files, nothing fancy.

    This is what an eml file looks like on the inside

    X-Sender: somewhere@google.com
    X-Receiver: somewhere@google.com
    MIME-Version: 1.0
    From: somewhere@google.com
    To: somewhere@google.com
    Date: 7 Jun 2009 18:58:01 -0400
    Subject: From someone you know
    Content-Type: text/plain; charset=us-ascii
    Content-Transfer-Encoding: quoted-printable
    
    This is the body
    

提交回复
热议问题