Questions tagged [php-imap]
70 questions
1
vote
1 answer
Cannot install php-imap extension to php7.2 on centos 7
I have problem with installing php-imap to php7.2 on centos 7. When I run yum install php-imap I get this:
Loaded plugins: fastestmirror …

videosambo
- 31
- 1
- 4
1
vote
0 answers
How to install Imap on Amazon Linux with PHP 7.2.13
I am setting up a new instance and trying to install php-imap on it with no luck.
I am using: sudo yum install php-imap
And getting the following output:
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main …

Samuel Noriega
- 11
- 4
1
vote
1 answer
Google AppEngine with IMAP module installed
We have PHP application we want to move to Google Cloud in AppEngine if possible.
Unfortunately application relies on PHP's IMAP module which is not available under php (php56 or php72) or custom (container/linux box) environments Google…

Alex
- 5,510
- 8
- 35
- 54
1
vote
0 answers
Why are the IMAP functions in PHP so horribly slow?
Why are the IMAP functions in PHP so horribly slow? And are there any recommended workarounds? I've got a small bit of PHP running on a private server that I have set up to poll a couple of different Gmail inboxes and aggregate the new messages for…

soapergem
- 9,263
- 18
- 96
- 152
1
vote
0 answers
Imap with codeigniter error
On my codeigniter project on xampp I have this library Imap
When I call this function imap->get_mailbox_size();?> I get this error
Unexpected characters at end of address: <> (errflg=3)
Here is the vardump
int(471858)
I can…
user4419336
1
vote
0 answers
Use php-imap classes to parse new mails from server, with Symfony 2.7
I'm working on Symfony 2.7. I have to create a mail client to retrieve and send mails from the mail server (IMAP protocol); to do this, I used the php-imap classes, with a bundle (included with composer). But I'm not sure about the way I should use…

Blackwaxx
- 45
- 7
1
vote
0 answers
Filtering "=2E" from e-mails
We retrieve and parse e-mails via PHP5-imap, and when parsing e-mails, we noticed that some of the e-mails contain special characters which are not filtered out automatically (ex: =2E or = before a line break)
What is the best way to filter these…

Sander
- 1,402
- 2
- 21
- 44
1
vote
1 answer
PHP base64_encode PDF File Corrupted
I have an automated PHP script which connects to an email box, reads emails and process them to create tickets. Some of these emails contain various types of file attachments. My script uses following code to save files directly to a postgress…

Vajira Lasantha
- 2,435
- 3
- 23
- 39
1
vote
2 answers
Imap count all mails of email account
I'm trying to count all emails from and email but my script only count mails from inbox,
anyone know how to count all emails from the mail account including sent,spam,deleted, etc
$mailcnf =…
user785533
0
votes
0 answers
PHP Mailer different mail body
I need your help. I want to send different HTML texts using PHP Mailer. My PHP code works as an autoresponder.
When a person sends a message to my email address no-reply@example.com, the autoresponder should reply with HTML Text 1.
When a person…

BouncedBy
- 1
- 1
0
votes
0 answers
PHP-IMAP by Webklex not retrieving all emails
I have an IMAP mailbox on Outlook.com/ExchangeOnLine that has about 38,000 messages in it. It is a journaling mailbox, which I am using PHP and Webklex PHP-IMAP to download messages, store in a database, and then delete the message from the…

WCoInc
- 1
- 1
0
votes
0 answers
Retrieving flagged messages with webklex php-imap
I 'm trying to fetch flagged mails from a specified folder.
I tried:
$folder->query()->not()->unflagged()->setFetchBody(false)->leaveUnread()->get();
$folder->query()->not()->where([["UNFLAGGED"]])->leaveUnread()->get();
And some other I don't…

Dospi
- 11
- 2
0
votes
0 answers
Webklex php-imap custom flags
I struggle with the mentioned lib and use of custom flags. The IMAP protocol specs states that system flags starts with , keywords do not have any prefix.
There is the class Message with its methods setFlag and unsetFlag but it adds everytime the…

Ole_S
- 356
- 1
- 3
- 21
0
votes
0 answers
PHP IMAP - can't apply UNSEEN filter while SE_UID flag is set
I've experienced some problems with imap_search function
when I set SE_UID flag in case of UNSEEN it return false by some reason.
I tried 'ALL' filter criteria and it works fine in all cases:
$emails = imap_search($inbox, 'ALL', SE_UID); // return…

Andrey Merkulov
- 306
- 1
- 4
0
votes
0 answers
What is the best php option to connect to outlook imap with oAuth?
What would be the best option to connect to an outlook email account with PHP?
I´m not sure how to declare my credentials with oAuth, should I use my e-mail as username or the client Id key as username? Should I use client secret as password?
I've…

fcaserio
- 726
- 1
- 9
- 18