Questions tagged [php-imap]
The php-imap tag has no usage guidance.
php-imap
73
questions
0
votes
0
answers
13
views
PHP mix socket and class to open and close an IMAP connection
I'm using the php-imap library from Barbushin (https://github.com/barbushin/php-imap) to connect to mailboxes via pop3 and imap. When I try to delete a mail using the POP3 protocol, it doesn't work. ...
0
votes
0
answers
111
views
BAD User is authenticatedbut not connected Error When Connecting to IMAP with OAuth on Outlook Office 365 in PHP
I'm attempting to connect to an Outlook Office 365 IMAP server using OAuth authentication in a PHP application, but I'm encountering the following error after successful authentication:
BAD User is ...
0
votes
0
answers
74
views
Failed IMAP Connection with Webklex PHP-IMAP and OAuth Token
I'm trying to establish an IMAP connection using Webklex PHP-IMAP library with Office365. I've successfully generated an access token using client ID, secret, tenant ID, username, and password. ...
1
vote
1
answer
181
views
Unable to get inbox from gmail using php imap
Hello guys am trying to use php imap to get email message but am getting Network is unreachable error
this is my code
<h1>Gmail Email Inbox using PHP with IMAP</h1>
<?php
if (! ...
0
votes
0
answers
56
views
No php 7.3 imap module in Ubuntu 18
I have an old server running ubuntu 18 (which I cannot upgrade) and PHP 7.3.
lsb_release -a
No LSB modules are available. Distributor ID: Ubuntu Description:
Ubuntu 18.04.6 LTS Release: 18.04 ...
0
votes
0
answers
50
views
Unable to view e-mail attachments on iOS Mail when generated with PHP imap_mail_compose
I'm trying to generate a HTML e-mail with 1 PDF attachment using PHP. The tool I'm using to send the e-mails is AWS SES which means it has to be in MIME format.
I stumbled across the imap_mail_compose ...
0
votes
0
answers
70
views
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 [email protected], the autoresponder ...
-1
votes
1
answer
369
views
How to read unseen mails in PHP
I wrote the following code to read mails from my mailbox to program. when i give "ALL" in imap_search i get all the mails. but when i give "SEEN" or "UNSEEN" I always get ...
0
votes
1
answer
339
views
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()-&...
0
votes
0
answers
95
views
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 ...
1
vote
0
answers
1k
views
Access Outlook email in PHP using imap and OAuth
Due to Microsoft removing Basic Auth from IMAP connections, we are converting our PHP code to use microsoft's oauth api and the external library: php imap.
We have managed to successfully get the ...
1
vote
0
answers
688
views
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 ...
0
votes
1
answer
813
views
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(...
1
vote
1
answer
2k
views
How can I read emails with Google Gmail?
Google has turned off access to gmail from less secure apps. Therefore I cannot connect to gmail service with "php_imap" and read emails. Is there any way I can solve this? Or another ...
1
vote
0
answers
70
views
Unable to extract Unique Identity for Emails sent from Safaricom Internal Mails ie Message ID (PHP IMAP)
I am having a challenge,I am unable to extract a unique field from emails sent directly from Safaricom Internal Mails to our Customer Service Mailbox.
All other mails received from different senders ...