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
Can wildcard SSL certificates be used with PHP imap_open?
I am using PHP's imap_open function to connect to an IMAP email server. This has been working fine for several years, but the email server was recently changed and I have started getting the following error:
"Cannot connect to mail server:…

aaknitt
- 73
- 1
- 6
0
votes
1 answer
imap_setflag_full is unable to set email as read gmail
I have a script that checks users mailbox and processes those email into a ticket system. For 99% of the time the script works fine. Once in a while I come across an email that does not get marked as read after processing. I have not been using the…

Cesar Bielich
- 4,754
- 9
- 39
- 81
0
votes
0 answers
Failures extract data from Gmail in PHP
Friends, I'd appreciate any insight into this vexing problem. I'm using PHP to scrap emails out of a Gmail account, using pretty standard code. It seems to work with text and HTML emails, but NEVER with any email with an attachment or embedded…

A Smith
- 11
- 2
0
votes
1 answer
How to check if imap_open() connect or not in php?
I'm trying to fetching email from particular email account. Code is working fine when i'm passing correct details in the imap_open(); function. But i want to add validation, when someone pass incorrect email address or password then it should return…

Ayaz Ali Shah
- 3,453
- 9
- 36
- 68
0
votes
1 answer
php function imap_open failing when run through command line on windows with script
I am running Windows Server 2012, and is also running apache and PHP on an intranet.
When I pull the script through http://localhost/script.php it runs without issue and no problems.
When I run the same script through the command line with the…
0
votes
0 answers
About PHP IMAP and connections limit
I made an online CRM for our company that checks the imap accounts using php imap library.
I open the connections using imap_open
it works perfectly but sometimes I get an error in the line where imap_open is.
I get [CLOSED] IMAP connection broken…

Alvaro Hernandorena
- 610
- 1
- 5
- 18
0
votes
0 answers
Cant connect using imap_open to peoplepc.com mail server
Im just having trouble getting connected to peoplepc.com webmail via imap ,
Here is the code :
$host = "{imap.peoplepc.com:143/imap}";
$user = "User@peoplepc.com";
$pass = "Password";
try {
$mbox = imap_open($host, $user,…

Kimovish
- 1
0
votes
0 answers
imap_open hotmail authenticating is working in Egypt but not in UK
This code working fine in my country Egypt how every when i upload it to the server which is located in UK it does not work, it seems to be a country authentication problem.
Is there any way to over come this restriction even if in Hotmail settings…

Dahab
- 518
- 1
- 5
- 23
0
votes
1 answer
How can I move an email message from one folder to another using PHP imap
I am trying to read messages from an email... Depending on the subject's content I want to move it to either a "Processes" or "unauthorized" folder
save the messages in an array and then move the message from the INBOX to the Proceeded folder
Here…

Jaylen
- 39,043
- 40
- 128
- 221
0
votes
2 answers
PHP IMAP - Can't identify boxes
I'm creating a PHP application to save in my database all the email messages from an email account.
When I connect to a gmail account and use the imap_list() function, I get these boxes:
array {
[0]=> "{imap.gmail.com:993/ssl}INBOX"
[1]=>…

Zingerale
- 1
- 3
0
votes
0 answers
Connecting To Imap With PHP Being Refused
I am having a problem connecting php code to an IMAP server.
So as it goes I have a VPS with Godaddy and I also have a shared hosting account that has the email address I want to connect to. I also have a local virtual machine running CentOS 6 with…

Glen
- 655
- 3
- 16
- 31
0
votes
1 answer
imap_open in php file not working when run as a cron job in parallel plesk
I have a PHP script with the line:
$this->conn = imap_open('{'.$this->server.'/notls}', $this->user, $this->pass
It works when run in browser.
However when run as a cron job on parallel plesk version 12 I get error:
PHP Warning: imap_open():…

estuaryweb
- 1
- 1
0
votes
1 answer
Extract Email from Headers
Can't seem to get my code to work. Warning: preg_match_all() expects parameter 2 to be string, array given in /script.php on line 23. I am looking to retrieve a list of emails addresses:

CrayEightz
- 3
- 4
0
votes
1 answer
reading mail from rediffmail using imap_open() function
Can anyone tell me how do i connect to rediff mail server using imap_open() function in php.
i tried with the following code:
$this->conn = imap_open('{'.$this->server.'}INBOX', 'easyloanemi@rediffmail.com', 'password')or…

Iftikhar Ali Ansari
- 1,650
- 1
- 17
- 27
0
votes
0 answers
Cakephp + Not reading all unread emails using imap_open
I have an application in which once in 24 hours need to check mailbox and get all unread emails.
and its doing but sometime it skips 1,2 or few emails.
Can someone help me out in this regard that why its skipping ?

Naveed Ramzan
- 3,565
- 3
- 25
- 30