I am trying to get mails from gmail account with php imap in bluemix application. I believe it is a bluemix config issue.
I have enabled imap in the gmail acount.
In bluemix I added a file .user.ini and I wrote : extension=php_imap.dll
The php code is:
<?p
hp
set_time_limit(60);
/* connect to gmail with your credentials */
$hostname = '{imap.gmail.com:993/imap/ssl}INBOX';
$username = 'mygmailaccount@gmail.com';
$password = 'mypassword';
/* try to connect */
print_r('debug: just before accessing gmail');
$inbox = imap_open($hostname,$username,$password) or die('Cannot connect to Gmail: ' . imap_last_error());
print_r('debug: i did not die when accesing gmail ');
/*here is more code but I do not access this... */
?>
When I run this code I get the first debug message and that's all. no error or other debug.
I might guess that something with the imap.dll setting is wrong.
Can I have advice on this? :)