Connect gmail using imap in PHP
Connect gmail using imap in PHP
We can connect to our gmail using PHP.PHP has a built in extension php_imap,make sure you have to enable php_imap extension in your php.ini by adding this line extension=php_imap.dll.
This will enable imap to your php,now use this script
<?php /* connect to gmail */ $hostname = '{imap.gmail.com:993/imap/ssl}INBOX'; $username = 'YOUR GMAIL'; $password = 'YOUR GMAIL PASSWORD'; /* try to connect */…
View On WordPress
















