This is a small class I wanted to share, designed for use on my personal mail server. I opted for IMAP over SMTP, so I haven't tested it with typical email providers like Gmail, Outlook, etc.
The purpose of this class is to automatically retrieve the activation code from a Neopets email, thereby streamlining the account activation process when used with an account creator. Once it secures the activation code, the corresponding email is deleted from the server, keeping the inbox clean.