Questions tagged [imap-open]

It is a member of PHP's collection of functions dedicated for dealing with IMAP (Internet Message Access Protocol)

61 questions
23
votes
2 answers

Using PHP, How to search through Gmail's archived emails

(First time programming in PHP. Had some help. Need a bit more.) Goal: Pull the lastContactDate from a given email address from my gmail account. Hoping to answer the question, "When was the last time I contacted [Person]" What I've done so…
andrewfarah
  • 453
  • 3
  • 11
8
votes
2 answers

Can't silence imap_open error notices in PHP

I am using PHP 5.3.5 and I am using $this->marubox=@imap_open($this->server,$this->username,$this->password); The @ sign should silence error reporting but it doesnt and I am sure that the error occurs on this line. I want my application to…
Ragnar
  • 4,292
  • 4
  • 31
  • 41
6
votes
1 answer

Fetch emails with specific label from G-mail in PHP

I have a lot emails in my mail box with some specific label like "NR-Support" which contains emails from www.naveedramzan.com contact form. I have developed ticketing system and now its directly saving ticketing system from Contact form. But, I…
Naveed Ramzan
  • 3,565
  • 3
  • 25
  • 30
6
votes
2 answers

PHP imap_open - doesn't work with SSL and novalidate-cert param

I try to open an IMAP connection via PHP imap_open ("{localhost:993/ssl}", "username", "pwd") ok, this doesn't work as expected, cause I'm using a self-signed cert. But at least I got an error: Warning .... Couldn't open stream So I try imap_open…
user3774300
  • 61
  • 1
  • 2
4
votes
3 answers

Problem connecting to a Exchange 2007 server in PHP5 with imap_open

When im trying to connect to an Exchange 2007 server over IMAP in PHP5 I get the following error message. Kerberos error: No credentials cache found (try running kinit) for smtp.domain01.net I was wondering if somebody found a way around this…
3cho
  • 547
  • 1
  • 6
  • 12
4
votes
1 answer

PHP imap_open works on 7.0.6 but not on 5.4.16

So, I have a generic/application/system account (terminology varies) which has access to multiple mailboxes. The username I use is in the format // and this is the only "out of the ordinary" thing. The following line works…
urban
  • 5,392
  • 3
  • 19
  • 45
4
votes
3 answers

imap_open with encrypted password from database

I am developing an admin panel for the company I'm working at, and was wondering about something. I want to increase the experience for the employee. I want them to be able to connect to their email by entering the login credentials, and then read…
Teskon
  • 115
  • 1
  • 12
3
votes
2 answers

Why not connect PHP imap/pop3?

I'm sorry, I speak a little English. Some days try, try and try. Read all stackoverflow questions and answers this, but no help. I would like only one imap connection. I try some webhost and not works. Please help me. // $foo =…
jozs2021
  • 91
  • 7
3
votes
0 answers

How to catch error message from imap_open?

I am trying to make a connection using imap_open and I am trying to return the error message to the end-user. However, the execution stopped every time whenever it encountered an error. try { $mbox=imap_open( "{" . $data['imap_host'] . ":" .…
Saroj Shrestha
  • 2,696
  • 4
  • 21
  • 45
2
votes
1 answer

PHP - Office365 connecting with imap_open

thanks for the anticipated help. Does anyone know the current state of php connecting to office365 using imap_open? I have tried all the suggestions found on stack overflow and my current code is below. I simply cant seem to connect to office365…
user3601664
  • 21
  • 1
  • 3
2
votes
1 answer

imap_open() return what kind of data

I have a mailbox option in my CRM, in the mailbox everything working fine, PHP IMAP functions fetching data is take to much of time, initially it takes 57 second for per request, i have note the loading time log for each and every IMAP function,…
Jegan S
  • 27
  • 7
2
votes
1 answer

How to fetch user's First Name in php using Gmail Credentials as input?

I earlier used imap_open function in php to validate credentials of users from a form and give them login to my website. Now I also want to print their name that can be fetched from Google Servers providing their credentials as input. I want to…
Mercury
  • 312
  • 3
  • 20
1
vote
0 answers

imap_open in php suddenly stopped working reading office 365 mail box from 15 Oct 2022

imap_open in php suddenly stopped working reading office 365 mail box from 15 Oct 2022. Talked to a Vendor of Office 365. He adviced to use TLS 1.2. But I have no idea how to use TLS 1.2 in my code. How to incorporate TLS 1.2 in the code? The error…
kumarsunit
  • 11
  • 1
1
vote
0 answers

Webmin server, PHP imap_open() not working properly

My client use webmin server for using the CRM which is developed by me, in mailbox module, if user choose a email which they want to open in a mail box every thing is perfectly sometimes, if emails are listed after viewing one email some time view…
Eibs
  • 86
  • 8
1
vote
0 answers

How to get new emails on the first try with imap_open in php

I have a PHP script which opens an email inbox, searches for the last email and then performs some other operations if this email has the UNSEEN header. The script is run by a cron job, and it works fine. The problem is that sometimes it takes…
F_Bass
  • 343
  • 4
  • 17
1
2 3 4 5