I'm trying to implement a check new mail function to my page. By this I mean a script that checks the mail, if there exists unread mails it will notify the user "You got one unread mail".
Is this possible?
Thanks in advance
I managed to get it to work as long as the users emails and passwords are stored as plain text in the database.
I'm using a query to retrieve email and password of a user from my database ($email) and ($password)
The code:
$mbox = imap_open("{imap.domain.com:143/novalidate-cert}INBOX", "$email", "$password");
The only problem is that the email passwords for my users are stored as md5 hash.
How can I handle this with imap_open?
Thanks