Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

body is null #78

Open
gregwhite83 opened this issue May 28, 2012 · 2 comments
Open

body is null #78

gregwhite83 opened this issue May 28, 2012 · 2 comments

Comments

@gregwhite83
Copy link

bit of a noob on this but I have followed your example in the readme for version 1.6.0.0

using (var pop = new AE.Net.Mail.Pop3Client("xxxxxxxxx","test@xxxxxxxxx","xxxxxxxxx",110,false,false))

        for(var i = pop.GetMessageCount() - 1; i >= 0; i--){
  var msg = pop.GetMessage(i,false);
  Console.WriteLine(msg.Subject);
  Console.WriteLine(msg.From);
  Console.WriteLine(msg.Body);

}

body always returns empty any ideas? Subject and From are fine.

@davidnjohnson
Copy link

Try the BodyHtml property. It's hard to tell without documentation, but I think depending on the message type either Body or BodyHtml are filled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@gregwhite83 @davidnjohnson and others