It is a member of PHP's collection of functions dedicated for dealing with IMAP (Internet Message Access Protocol)
Questions tagged [imap-open]
61 questions
0
votes
0 answers
Not able to Sync my Outlook mail server to my localhost server using imap_open
When trying to get all mails from mailbox I got this error:
Warning: imap_open(): Couldn't open stream {outlook.office365.com:993/imap/tls}INBOX in C:\xampp\htdocs\Phpimapdoc\index.php on line 8
Cannot connect to Outlook: [CLOSED] IMAP connection…

Sreekanth
- 1
- 2
0
votes
0 answers
PHP imap_open for Microsoft Outlook from Basic Authentication to Modern Authentication
We are using imap_open() PHP function to connect and read outgoing and incoming emails (to,from,subject and time) and record them on our custom built CMS for recording emails sent and received by our clients.
Problem is Microsoft is shifting to…

Adeel Ahmed
- 39
- 1
- 3
0
votes
0 answers
How do I resolve IMAP connectivity error?
Can anybody help regarding this issue. The email didn't received through the imap_open function. I have seen a problem with this function.
imap_open($hostname, $username, $password) or die('Cannot connect to Server: ' . imap_last_error());
First…
0
votes
2 answers
Getting error like this imap_open(): Couldn't open stream
I am trying to access my company mail id (the mail provider is Gmail) inbox using IMAP. I have applied almost all the possible solutions available here and also on google. But I am facing the same issue.
These are the some solutions which I…

Anisha Krishnan
- 21
- 1
- 10
0
votes
1 answer
SoapFault exception: [HTTP] Could not connect to host / php imap - signature has expired
If anyone is having issues with these errors, theres been compatibility changes to LetsEncrypt. Unless both your polling and answering server are on compattible versions, you can fix your error by ensuring that your openssl version is < than the…

Derick Van Wyk
- 63
- 1
- 8
0
votes
1 answer
Trying to connect to email server from php script using imap_open
I'm not a programmer, so please bear with me. Sorry if this is dumb.
I can create and use php scripts on my website no problem. For the last few days, I've been trying to figure out a way to check my email programmatically. The most common solution…

JohnF
- 1
0
votes
2 answers
imap_open on server Aruba.it
To receive mail I usually use:
imap_open('{mail.sito.com:143/notls}', $user, $pass);
I am having difficulty however when I have to connect to an email on Aruba server.
i tried…

Marco
- 11
- 3
0
votes
0 answers
php how to perform imap_search and then sort only results
How can I perform a imap_search an then sort the result by date ?
I've tried
$imap_ressource = imap_open($server, $user, $password)
$search = imap_search($imap_ressource, 'Subject blablabla'); // to search email with same subject
$sorted =…

Jintor
- 607
- 8
- 32
0
votes
2 answers
imap_open() works locally but not on server
The issue is i'm trying to get the last email from my email using php, and it works fine locally. But then I uploaded the script to the client's server, and I don't get a response. When I check the logs, I get this:
[12-Feb-2020 08:43:21 location]…

F_Bass
- 343
- 4
- 17
0
votes
0 answers
How can i retrieve the inbox for a specific email address by logging in as the email server's root account in PHP
So, basically I have the PHP imap_open code (idk how to call it) that works when you log in with a specific email address. What I want to do is to log in with the mail server's root user(I'm guessing that's what it's called, it's the account that…
0
votes
0 answers
Imap-open isn't Connecting to Gmail - SELinux Problem
Hi I'm Working on some code to imap some accounts from Gmail into a LAMP server I have done it before and now try to use same code but unusefully ok I have all day reading a lot of it here and this is what I have done until now.
I have enable imap…

denn0n
- 155
- 1
- 12
0
votes
0 answers
Getting No response whole imap_open for hotmail port 995
$host = 'outlook.office365.com';
$port = '995';
$username = 'test@hotmail.com';
$password ='testpassword';
$connection1 = imap_open('{'.$host.':'.$port.'/ssl/novalidate-cert}INBOX',
$username, $password) or die('Cannot connect to Hotmail: ' .…

Saurabh Sharma
- 430
- 2
- 11
0
votes
0 answers
Open Mailbox with PHP imap_open, DomainFactory mail
I tried to open my mail server with imap_open(). I always get this error:
Warning: imap_open(): Couldn't open stream {sslin.df.eu:993/novalidate-cert}
I tried this…

Newbie
- 57
- 1
- 7
0
votes
1 answer
Retrieve the Outlook 365 Sent Folder with imap_open
I am using an exchange server, and I am able to download the inbox with the below code:
$hostname = "$server/pop3/ssl/novalidate-cert}INBOX";
$inbox = imap_open($hostname,$username,$password) or die('ERROR: ' .
imap_last_error());
However, when I…
0
votes
0 answers
php imap_open behind a proxy ntlm auth
good afternoon!
I am having a problem with "imap_open" it is not able to open connection to an external server because I am behind a proxy server.
I tried several settings with the "stream_context_set_default", "" stream_context_set_option "and"…

Gabriel Bueno Lemes da Silva
- 15
- 1
- 5