adrian28uk Posted September 13, 2006 Share Posted September 13, 2006 Is there a way to send an email to a specific address from an email client that would automatically insert the message in plain text to mysql. Could this also be done with attachments as well. I have seen a couple of support tickets systems work like this.I was wondering if you have any ideas on this?Thank you Quote Link to comment Share on other sites More sharing options...
jpadie Posted September 13, 2006 Share Posted September 13, 2006 two ways:1. if your smtp server or MTA has a sendtoprogram mode then you could direct the output of the mail handler to a php script. postfix has such a thing.2. use php's imap functions to poll your email account from time to time and parse the new email in there. there are some nice classes in PEAR which will do this for you if your coding skills are not currently up to it. if you want an example of an application that does this have a look at wordpress's code. Quote Link to comment 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.