hey folks any ideas on how to approach this problem. I am sending out mails to users on a particular activity. Now when the user gets the mail, I need a functionality wherein if he replies from the email, the reply has to be stored in the database. Stack - PHP(Yii framework) & mysql
I read about IMAP and I have this code.
$hostname = '{imap.gmail.com:993/imap/ssl}INBOX';
$username = 'xx.xx@gmail.com';
$password = 'mypassword';
$inbox = imap_open($hostname,$username,$password) or exit('Cannot connect to Gmail: ' );
if ($inbox)
{
echo "connected";
imap_close($inbox);
}
else
{
echo "not connected :<br>" . imap_last_error();
}
But nothing happens , am I doing anything wrong?