Questions tagged [php-imap]

70 questions
24
votes
6 answers

Adding IMAP to PHP 7.2 on OSX

I'm using PHP 7.2 on OS X El Capitan, installed using Homebrew (of course). Now I'd like to use some IMAP functions from PHP's IMAP extension, but no matter what I search for, I can't find a way to add the extension on OSX. Some things I've tried...…
Laef
  • 1,086
  • 2
  • 11
  • 27
3
votes
1 answer

IMAP PHP with embedded images not showing Codeigniter on localhost

I use codeigniter and imap php currently developing project xampp. For some reason them embedded images not showing. In my getBody() function I have this call back $body = preg_replace_callback( '/src="cid:(.*)">/Uims', function($m)…
user4419336
3
votes
1 answer

How to enable PHP IMAP for php5-fpm / NGINX?

We have a NGINX server running on Ubuntu 14.04.2 LTS with php5-fpm. An application (OEMPRO) I'm trying to install on it says: PHP IMAP extension is disabled. Please enable it. How can I enable PHP IMAP? I've checked our phpinfo and it seems that…
Holly
  • 7,462
  • 23
  • 86
  • 140
3
votes
1 answer

PHP - WAV download from email

We currently have a PHP Script that accesses our emails and pulls the .wav files to be accessed for voicemail purposes. But the new voicemail system sends the .wav like this: 01359272577 03-14-16 20h14.wav, where the old system did it like this:…
Law
  • 51
  • 1
  • 4
3
votes
0 answers

How to clear a full IMAP mailbox using php_imap

I'm using PHP IMAP and I want to remove all the mails in my box, but I can't find the way to select all folder. I can retrieve all the folders names using imap_listmailbox :
Zakaria Acharki
  • 66,747
  • 15
  • 75
  • 101
2
votes
1 answer

PHP IMAP : How to get the correct body?

I am connecting to my inbox via PHP IMAP plugin. Below are my steps Connection //The location of the mailbox. $hostname = '{outlook.office365.com:993/imap/ssl/novalidate-cert}'; //The username / email address that we want to login to. $username =…
2
votes
1 answer

What is the order of the e-mails found by imap_search?

I'm using imap_search to retreive all e-mails from a mailbox. See: http://php.net/manual/en/function.imap-search.php Is it safe to assume that imap_search() retreives the e-mail ordered by date, oldest first? It does seem so from my testing, but I…
L.A. Rabida
  • 416
  • 3
  • 15
2
votes
1 answer

General error: 1366 Incorrect string value in Laravel/Mysql

I have designed laravel app to fetch mails using php imap. In kernel I have written code to fetch all mailboxes, below is my code for fetching mails from mailbox
Vishal Shetty
  • 1,618
  • 1
  • 27
  • 40
2
votes
0 answers

How to fetch only unread emails and set as read after viewing using IMAP?

Currently I'm using https://github.com/Eden-PHP/Mail (A PHP library to fetch inbox). As per documentation, I'm not able to fetch unread emails. My requirement is to fetch unread emails, after processing I want to update it as read!.
user7818832
2
votes
0 answers

How to make IMAP sign-in attempts more secure using PHP?

I'm using the PHP imap extension to read emails from a gmail account but when I tried it the first time I got an email from google telling me that it had blocked the sign-in because it was "from an app that may put your account at risk" and that…
ninjacoder
  • 293
  • 2
  • 11
1
vote
0 answers

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 access_token using the api and provide it to the…
Parampal Pooni
  • 2,958
  • 8
  • 34
  • 40
1
vote
1 answer

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 solution I can use? My current link code is: $imap =…
Arif Akyol
  • 21
  • 2
1
vote
0 answers

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 have the unique field: Message ID - As seen…
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 particular Email id Emails and conversations from PHP IMAP server

I have been developing CRM for lead management, now i want to get a selected lead emails from my email by ID. I use php imap function to get all the emails from the mail server, but in this scenario i can't pull out particular email conversations by…
Eibs
  • 86
  • 8
1
2 3 4 5