CanMan2004 Posted January 22, 2007 Share Posted January 22, 2007 Hi allI am wondering if it is at all possible to send an email to a particular address and the content in the email is then uploaded to a sql database.Im not sure if this can be done, has anyone ever done this?ThanksEd Link to comment https://forums.phpfreaks.com/topic/35186-inserting-data-via-email-can-it-be-done/ Share on other sites More sharing options...
trq Posted January 22, 2007 Share Posted January 22, 2007 Of course its possible, and yes, its done all the time.I'm not sure what part you could possibly be stuck on. Use the [url=http://php.net/mail]mail[/url]() function to send the email, then the [url=http://php.net/mysql_query]mysql_query[/url]() function to insert the email into a database. Link to comment https://forums.phpfreaks.com/topic/35186-inserting-data-via-email-can-it-be-done/#findComment-166164 Share on other sites More sharing options...
CanMan2004 Posted January 22, 2007 Author Share Posted January 22, 2007 the part where the server would be able to pick up the email and read the contents of a specific email Link to comment https://forums.phpfreaks.com/topic/35186-inserting-data-via-email-can-it-be-done/#findComment-166171 Share on other sites More sharing options...
trq Posted January 22, 2007 Share Posted January 22, 2007 Sorry, you'll need to be clearer in what it is exactly your trying to do. If your sending the email, then put it in a database and send it.If you want that when an email arrives at a client the email is to be stored in your database this isn't going to happen. You can't do anything on the client. Link to comment https://forums.phpfreaks.com/topic/35186-inserting-data-via-email-can-it-be-done/#findComment-166191 Share on other sites More sharing options...
DjKermit Posted January 22, 2007 Share Posted January 22, 2007 HiTry [url=http://php.net/manual/en/ref.imap.php]IMAP[/url] Link to comment https://forums.phpfreaks.com/topic/35186-inserting-data-via-email-can-it-be-done/#findComment-166243 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.