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

Object reference not set error when retrieving IMAP data. #33

Open
rkarina94 opened this issue Oct 16, 2017 · 1 comment
Open

Object reference not set error when retrieving IMAP data. #33

rkarina94 opened this issue Oct 16, 2017 · 1 comment

Comments

@rkarina94
Copy link

Hi,

I'm using the MailSystem.Net library for a Bounced Email tracking system that I'm working on.
Firstly, I initiate an IMAP connection to GMAIL servers with ConnectSsl() using port 993.

It runs well but after a few hours, this error occurs:

"Error:Object reference not set to an instance of an object., Stack Trace: at ActiveUp.Net.Mail.Imap4Client.Command(String command, String stamp, CommandOptions options)
at ActiveUp.Net.Mail.Imap4Client.Command(String command, CommandOptions options)
at ActiveUp.Net.Mail.Imap4Client.GetMailboxes(String reference, String mailboxName)
at ActiveUp.Net.Mail.Imap4Client.SelectMailbox(String mailboxName)"

when I try to retrieve the email data from the GMAIL mail servers with this method -
m_imapClient.SelectMailbox("NAMEOFFOLDER"). Any help would be great, thanks.

Regards,

Adhy

@reinaldocoelho
Copy link
Collaborator

Hi @rkarina94 !

Can you share the code or an example of code who cause error?

Thank you.

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

2 participants