Free hosting problem with imap_open

hi guys,
I have trouble using imap_open with this code

$hostname = ‘{imap.gmail.com:993/imap/ssl}INBOX’;
$username = ‘blabla@gmail.com’;
$password =‘xxxx’;

$inbox = imap_open($hostname,$username,$password) or die('Cannot connect to server: ’ . imap_last_error());

$emails = imap_search($inbox,‘ALL’);
it returns an error
Error: Call to undefined function imap_open()
I’ve got a free hosting
Do you know if the imap functions are operationnal with free hosting , and if yes what could the problem
thx
lolo

IMAP would be a premium plan feature

ok that’s what I was afraid of …
thx

1 Like