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

FormatException Hotmail #64

Open
Stromgald opened this issue Apr 4, 2012 · 3 comments
Open

FormatException Hotmail #64

Stromgald opened this issue Apr 4, 2012 · 3 comments

Comments

@Stromgald
Copy link

Hi , i'm using aenetmail POP3 with Hotmail.

The application throw me FormatException in this part of Code :

    // Now we hope the only thing left in the characterSet is numbers.
    int codepageNumber = int.Parse(charSetUpper, System.Globalization.CultureInfo.InvariantCulture);

After that i recive always : You must authenticate first!

I'm using this Code :

using(var pop = new Pop3Client("pop3.live.com", "username", "password", 995, true))
{
for (var i = pop.GetMessageCount() - 1; i >= 0; i--)
{

                 try
                 { 
                     var msg = pop.GetMessage(i, false);
                     MessageBox.Show(msg.Raw);
                     MessageBox.Show(msg.Body);
                 }
                 catch(Exception ex)
                 {
                     Debug.WriteLine(ex.Message);
                 } 
                 pop.DeleteMessage(i); //WE DON'T NEED NO STINKIN' EMAIL!
             }
         }
@Stromgald
Copy link
Author

I forgot to write that the String passed to codepageNumber is: 1252<HEAD

@andyedinborough
Copy link
Owner

It looks like the message is malformed. Could you forward me a copy of the message? [email protected]

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
@andyedinborough @Stromgald and others