Hello.
I have a strange result in my sample.
Code:
public static void Main(string[] args)
{
// Connect to the IMAP server. The 'true' parameter specifies to use SSL
// which is important (for Gmail at least)
ImapClient ic = new ImapClient("imap.mail.ru", "abcabcxxx@mail.ru", "iecnhtymrj",ImapClient.AuthMethods.Login, 993, true);
// Select a mailbox. Case-insensitive
ic.SelectMailbox("INBOX");
MailMessage[] mm = ic.GetMessages(0,1);
foreach (MailMessage m in mm)
{
Console.WriteLine("----");
Console.WriteLine(m.Subject);
Console.WriteLine(m.Body);
Console.WriteLine("----");
}
for (int i = 0; i < 2; i++)
{
MailMessage m = ic.GetMessage(i);
Console.WriteLine("----");
Console.WriteLine(m.Subject);
Console.WriteLine(m.Body);
Console.WriteLine("----");
}
// Probably wiser to use a using statement
ic.Dispose();
}
So, why when i use GetMessages method the body is null? But if use GetMessage - it is all ok.
abcabcxxx@mail.ru is my real test e-mail, You can try on it, but please don't change password)
Hello. I have a strange result in my sample. Code:
public static void Main(string[] args) { // Connect to the IMAP server. The 'true' parameter specifies to use SSL // which is important (for Gmail at least) ImapClient ic = new ImapClient("imap.mail.ru", "abcabcxxx@mail.ru", "iecnhtymrj",ImapClient.AuthMethods.Login, 993, true); // Select a mailbox. Case-insensitive ic.SelectMailbox("INBOX");
The output printscreen http://i50.fastpic.ru/big/2012/1205/23/a673ed82f659932e30e19bbb58cd0f23.png
So, why when i use GetMessages method the body is null? But if use GetMessage - it is all ok. abcabcxxx@mail.ru is my real test e-mail, You can try on it, but please don't change password)