Reputation: 1306
I've followed this tutorial on how to pipe email with Laravel and Cpanel but I can't setup forwared in cPanel. I tried to use every option available :
public_html/artisan --env=local email-parse
/usr/bin/php -q /var/public_html/artisan --env=local email-parse
/usr/bin/php -q public_html/artisan --env=local email-parse
I don't know what else can be made here, so this is why I'm asking here on SO.
The error I get is
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:
pipe to |/home/xxxx/public_html/artisan --env=local email-parse generated by [email protected] local delivery failed
The following text was generated during the delivery attempt:
------ pipe to |/home/xxxx/public_html/artisan --env=local email-parse generated by [email protected] ------
Could not exec '/home/xxxx/public_html/artisan'
Upvotes: 4
Views: 1110
Reputation: 169
I had the same need for retrieving emails with a laravel application and using CPanel, fortunately Shweta posted this link where show some code of how to read email from gmail and save it to a DB. I am using the code which it works from gmail and also using it with my CPanel credentials and works too.
Upvotes: 0
Reputation: 617
I'm facing a similar problem, but in my case at least I got Artisan to work. It finds artisan but it doesn't find the command I created. The url I used was
/pathtoartisan/artisan emailparse
Upvotes: 2