I have searched and read so many questions regarding this. I am saving incoming emails in to a MySQL database. I am using pipe to script method and I have already set up those things and the file reads correctly when I receive an email.
The error I receive is:
$inbox = imap_open($hostname,$username,$password) or die('Cannot connect to server: ' . imap_last_error());
I am confused with $hostname variable, I have tried many times and I failed.
Normally my server is localhost for MySQL. I tried with that, and my server uses SSL. I used this localhost:993/imap/ssl}INBOX
, but none are working. What is the correct server for that variable?
imap.mydomain.org:993 ???
Please help me to resolve this problem. I am fed up with this.