I used https://packagist.org/packages/php-imap/php-imap
Create an inbound mailbox and then collect from it using the imap protocol.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am looking to try to create an email pipe back to my laravel application... So far, I was able to get the email to actually send to the pipe, however once in the pipe, I can't get it to run correctly. https://www.sitepoint.com/piping-emails-laravel-application/ is what I used, but have "reconfigured it" to meet 5.5 needs (Including using artisan commands)... However I get the following error when it goes into the __construct() function...
PHP Notice: Undefined index: argv in /home/server/public_html/vendor/symfony/console/Input/ArgvInput.php on line 53 PHP Warning: array_shift() expects parameter 1 to be array, null given in /home/server/public_html/vendor/symfony/console/Input/ArgvInput.php on line 57
Because of this, the handle() function never gets called....
Does anyone have an idea of how I can go about dealing with this?? (I'm not sure if it's an issue because of the register_argc_argv variable being off, because of Shared Hosting... but if so... that would be a big problem... Is there any way to get around this error?? (My application actually uses this functionality very specifically in regards to returned emails.)
Looks like the issue is actually a bad artisan command... For some reason my __construct() function is never resolving fully, to call the handle() function... The rest of my stuff works.... So I opened a new discussion in regards to the artisan command... and seeing if there is something else happening that could be a bug or something...
I'll write up an email piping tutorial when I get done with this, that matches the new 5.5 formatting...
Please or to participate in this conversation.