Andy-H Posted January 19, 2012 Share Posted January 19, 2012 Just wondering if anyone knew of a way to pipe my incoming gmail emails to a PHP script? I know I can create a POP3 client and run a cron job but would much prefer a solution as above. Thanks for any help. Quote Link to comment https://forums.phpfreaks.com/topic/255357-is-this-possible/ Share on other sites More sharing options...
trq Posted January 19, 2012 Share Posted January 19, 2012 What do you meen by in coming gmail emails exactly? Do you meen emails from Gmail? Or emails to Gmail? You could use fetchmail and procmail, but you would still need to run a cron. Quote Link to comment https://forums.phpfreaks.com/topic/255357-is-this-possible/#findComment-1309393 Share on other sites More sharing options...
Andy-H Posted January 19, 2012 Author Share Posted January 19, 2012 I mean incoming emails, like a pipe to a PHP script when an email is recieved for a certain account, I could do it via email forwarding and handle if from there but I just wanted to know if gmail supported this functionality, I couldn't find it anywhere so I just connected to imap.gmail.com using PHP IMAP and will run that as a cron. Would still prefer to pipe it but don't think that's gonna happen. Quote Link to comment https://forums.phpfreaks.com/topic/255357-is-this-possible/#findComment-1309402 Share on other sites More sharing options...
trq Posted January 20, 2012 Share Posted January 20, 2012 Gmail itself doesn't have that type of functionality. Quote Link to comment https://forums.phpfreaks.com/topic/255357-is-this-possible/#findComment-1309447 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.