Certificate error using IMAP in PHP
The certificate is plain invalid. You should either connect to imap.mailboxhost.com:993/imap/ssl
or contact the administrator of the mail server and ask for a valid certificate.
Note that while you can use the connection string imap.froiden.com:993/imap/ssl/novalidate-cert
to skip certificate validation, you should not do so as that flag will allow any Man In The Middle attacker to read and write your email.
connect gmail through php imap? local issuer certificate error
This seems to be a certificate issue.
I don't tell you what the certificate issue is nor how to solve it.
However, you can leave your gmail account open to attacks by ignoring that issue disabling the certificate validation:
$hostname = '{imap.gmail.com:993/ssl/novalidate-cert}[Gmail]/All Mail';
IMAP open stream: Self signed certificate issue
STARTTLS of course uses the certificate to start the TLS channel, hence why you saw a self-signed cert error. Can not authenticate
, however, implies your username and password are wrong. Try logging in using telnet to verify your user and password are correct
Related Topics
Aescrypt Decryption Between iOS and PHP
PHP Check If Time Is Between Two Times Regardless of Date
PHP Domdocument Error Handling
How to Get the Server Path to the Web Directory in Symfony2 from Inside the Controller
Concat Columns with Laravel 5 Eloquent
Split an Array into N Arrays - PHP
How to Create Thumbnails or Preview for Videos
Remove Null, False, and '' - But Not 0 - from a PHP Array
How to Get the External Ip of My Server Using PHP
How to Print Multidimensional Arrays in PHP
PHP Switch Case Statement to Handle Ranges
PHP Get How Many Days and Hours Left from a Date
Add HTML Formatting in PHPmailer
Reload the Page on Hitting Back Button
Send a JSON Object from Android to PHP Server with Post Method and Httpurlconnection