Here is a strange thing.
I am using the Ipipi SMS service to send email to send control commands in a PHP script.
I can send emails to my inbox and then read and display them using PHP-IMAP commands, as in this code segment:
$overview = imap_fetch_overview($inbox,$email_number,0); $message = imap_fetchbody($inbox,$email_number,2); echo $message;
If I sent an sms message to the mailbox imap_fetchbody , it will be empty.
However, if I then read the mailbox with the mail client, there will be a message. I do not think this is the Ipipi problem.
If I do var_dump($message) , I get string(0) "" .
php imap
Billp
source share