Hi, Nathan.
> Also, if I have my mail sorted into IMAP folders, will this script return
> the number of new messages just in the root of the mailbox, or a
> total of all new emails?
Yes, script return only new mail in INBOX. If you want to check and other folder you must change script.
> I am getting the following error when I run my code:
> Warning: Couldn't open stream {:110/pop3/notls}INBOX
> in /var/www/mailNotify/phpIMAPMailNotification.php on line 127 Can't check @ account.
No, I don't have none ideas, but can suggest you to try to connect with telnet into mail.youdomain.com server.
type this in command prompt:
telnet <-
open mail.blahblah.com 110 <-
USER <user_name> <-
PASS <password> <-
xxx
LIST <-
yyy
QUIT <-
<- is enter key, xxx is information that mail server print, yyy is other information that mail server print
If this test don't pass that you have some problem with mail server and you must ask you ISP/HOSTING for that is possible to connect to POP3 on mail.youdomain.com server.
That is, best regards.