simonrs Posted November 25, 2008 Share Posted November 25, 2008 I'm looking to read email from a POP3 server, and if the subject/body match certain conditions, to forward any attached files to that email to another email address. Any suggestions as to how to go about doing this? I found this: http://uk.php.net/manual/en/book.mailparse.php in the official documentation but would prefer to steer clear from anything that relies on code outside of the default PHP install as it won't be on my host server. Thanks in advance for any help. Quote Link to comment https://forums.phpfreaks.com/topic/134191-reading-email-attached-files/ Share on other sites More sharing options...
JonnoTheDev Posted November 25, 2008 Share Posted November 25, 2008 You can connect and issue telnet commands to the mail server using: // use to connect fsockopen() // use to issue commands fputs() // use to read fgets() Quote Link to comment https://forums.phpfreaks.com/topic/134191-reading-email-attached-files/#findComment-698760 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.