I am trying to connect custom email through imap but receiving error imap_open(): Couldn't open stream {domain.com:993/imap/ssl}. TLS/SSL failure for domain.com:. Can please let me know what is wrong here.
Related
I tried to get emails from gmail server using imap library
$this->conn = imap_open("{".$this->server.":993/imap/ssl}INBOX",$this->user,$this->pass);
I got error like:
Message: imap_open(): Couldn't open stream {mail.server.com:993/ssl}
It was start working after I unchecked the less secure apps option from my gmail account and then got emails.
but when i used to get emails from hostgator server i got same error
Message: imap_open(): Couldn't open stream {mail.server.com:993/ssl}
Message: Unknown: Can not authenticate to IMAP server: [AUTHENTICATIONFAILED] Authentication failed. (errflg=2)
Message: Unknown: Retrying PLAIN authentication after [AUTHENTICATIONFAILED] Authentication failed. (errflg=1)
Like gmail server is their any option that i should check or uncheck in hostgator server. or any other method I should used?
I'm getting this messages when I tried to use php-imap to retrieve emails from server using IMAP protocol. I started with gmail accounts. But when I tried to connect using imap_open() I get the following messages:
Warning: imap_open(): Couldn't open stream {imap.gmail.com/imap/ssl:993}INBOX in \path\to\file\imap.php on line 6
or
Warning: imap_open(): Couldn't open stream {imap.gmail.com/imap/ssl/novalidate-cert:993}INBOX in \path\to\file\imap.php on line 6
depending if I use or not novalidate-cert
I found some related question, but not the solution
imap_open(): Couldn't open stream
Getting Error like imap_open(): Couldn't open stream in server
Connecting to Gmail IMAP PHP "Couldn't open stream"
Is it possible connect to email using the imap php extension?
If, Yes. How can I solved this message?
If, No. Which alternative for received email using PHP could be possible?
Try imap.gmail.com:993/imap/ssl. Port number comes after the domain name and befor the URI path.
I am going to use gmail in opencart as SMTP but its returning error in in every page where email is to sent some where. Like when new user register instead of going to account page or when someone submit contact form the folloing error appears.
Warning: fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Connection refused) in /public_html/system/library/mail.php on line 153Notice: Error: Connection refused (111) in public_html/system/library/mail.php on line 156
Following are the configuration I have done in opencart mail setting.
I have allowed unsecure appes and gone through the google DisplayUnblockCapcha.
but its still not working.
any help please...!!
I'm using whatsapp api PHP Library : Chat API
And I got this error when I'm trying to send message :
"socket_write(): unable to write to socket [10053]: An established
connection was aborted by the software in your host machine."
How to solve it?
I'm trying to read emails from imap mail with the php library ddeboer/imap .
I've created a subdomain like this: abm.mydomain.be . The IMAP extension wasn't installed so I asked the server administrator to install it. The function imap_open now exists. But now I'm getting the following error:
AuthenticationFailedException in Server.php line 76:
Authentication failed for user abm#mydomain.be with error imap_open(): Couldn't open stream {mail.mydomain.be:993/imap/ssl/validate-cert}
The user and passwords are correctly (100% sure of that). When I check phpinfo I see the following with imap:
Does anyone knows what I'm doing wrong?