smiley22 / S22.Imap

A free, easy-to-use and well-documented .NET library component for communicating with IMAP servers
http://smiley22.github.com/S22.Imap/Documentation/
MIT License
211 stars 115 forks source link

message body not fetch properly ( Problem In Encoding ) #125

Open hiteshamipara opened 8 years ago

hiteshamipara commented 8 years ago

static void Main(string[] args) {

        using (ImapClient Client = new ImapClient("abc.gmail.com", 993,
          "abc", "abc", AuthMethod.Login, true))
        {
             MailMessage msg = client.GetMessage(ids);
              string sBody = msg.Body;
        }
    }

Out Put : ??????? ?????

if email contain other than english language like ( Hindi or Gujarati ) at that time when use ImapClient.GetMessage than message body return "???????????" sign,

proper work can not display.

Is there another alternate way to fetch message without using Mail Message ?

jstedfast commented 8 years ago

I would recommend using MailKit because:

  1. This project is no longer under development
  2. MailKit has much better charset support