Questions tagged [php-imap]
70 questions
0
votes
0 answers
Get all messages in chunks with Php-imap Webklex
``
Excuse the English of translator
I am trying to consult emails in parts since there are more than 4000 to process them, I am working with Laravel and phpimap, I have tried everything, I start programming and I do not understand much of this
I…

Gindecat
- 1
0
votes
1 answer
Capture new Email event in PHP-IMAP in laravel
I want to fetch all emails in inbox and store them in realtime but the way i m doing it is a little bit wrong :
it's something like this:
class Kernel extends ConsoleKernel
...
$schedule->call(function () {
// connect using credentials
//get…

Yasser CHENIK
- 370
- 1
- 6
- 17
0
votes
0 answers
Fetching emails after a given UID via PHP imap_search
I store a local copy of my Gmail inbox via PHP IMAP. I need to fetch any emails which had not been fetched before. This is possible by date as
imap_search($imap, 'SINCE "15 April 2022"');
but, I look for a possibility to fetch all emails with the…

Googlebot
- 15,159
- 44
- 133
- 229
0
votes
1 answer
How to keep a process running in the background? - Laravel
I'm using the php-imap package and I want to listen for incoming emails.
The way to achieve this with php-imap is to call an idle() function, like this:
$emailFolder->idle(function (Message $email){
// dispatch event
});
The problem is that the…

Cata
- 29
- 4
0
votes
1 answer
PHP Unknown: [UNAVAILABLE] FETCH Server error while fetching messages (errflg=2)
When running the following command once:
I get the following error message:
Unknown: [UNAVAILABLE] FETCH Server error while fetching messages (errflg=2)
To confirm…

John
- 1
- 13
- 98
- 177
0
votes
1 answer
how to identify php imap client to gmail?
I want to identify my php imap client to gmail so user can check which imap is currently using the gmail.
The details who is using the gmail inbox right now can be check by click on details
gmail activity details
when check email by thunderbird…

Tariq Sajid
- 11
- 4
0
votes
0 answers
Why is this php-imap process randomly hanging while reading mail?
I am trying to read mails from ftp using lib php-imap v2.0.3 with php 5.3 from symfony v2.8 command started by cron.
For the exact same mail, sometimes the process hangs in Mailbox::getMail, sometimes it works fine. Can't figure out when. Best clue…

Yvon
- 15
- 5
0
votes
0 answers
imap_fetchbody return strange string
I'm having some problems with getting the message body from an email. I've searched for solutions but have still not found the solution. Below is the code
$imap_conn = imap_open('{imap.gmail.com:993/imap/ssl}INBOX','user','password');
$inbox =…

Marco Silva
- 81
- 1
- 6
0
votes
0 answers
How can I use a choosen php.ini file for crontask?
I need your help. I would like to be able to automate actions that use the php imap extension (email fetching) so I am using a cron job (crontab on mac) but I got an error message when running the script: In Imap.php line 97: Undefined constant…

briandev
- 29
- 7
0
votes
0 answers
How to detect drafted emails in IMAP. Using laravel-imap package
I am using Laravel-imap package (https://github.com/Webklex/laravel-imap) to fetch emails using imap.
I'm able to make a successful connection, able to fetch folders and emails, all set in that part.
However, I need to ignore drafted emails but I'm…

Sims
- 51
- 6
0
votes
0 answers
Bad Message Number IMAP
I am a php beginner and I am working on a mail parser. For that, I am going through PHP's IMAP functions which I wrote inside a mailParser class.
function __construct(){
$this->stream = imap_open($this->server,$this->username,$this->password)…

charmjo
- 13
- 2
- 6
0
votes
0 answers
installing php-imap through dockerfile
I'm trying to run a new dockerfile build for a laravel app, and all I need to do is get imap for php installed through docker
I'm running this now:
FROM quay.io/appTest/docker-php-iaccess-odbc:7.3-prod
WORKDIR /docker_app
COPY ./ /docker_app
RUN…

Geoff_S
- 4,917
- 7
- 43
- 133
0
votes
0 answers
php imap working locally but not on hosting: Server name does not match certificate
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 It's refusing every time. The logs show this:
[12-Feb-2020 08:43:21 location] PHP Warning: …

F_Bass
- 343
- 4
- 17
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
MacOS Mojave + PHP 7.1.23 + IMAP configuration
I want to use imap_append command in my PHP code. But, when I enabled extension=php_imap.dll in the /etc/php.ini file on my Mac, I am seeing following warning when I fire any PHP command:
Example:
php --version
gives output:
PHP Warning: PHP…

Akshay Lokur
- 6,680
- 13
- 43
- 62