android6011 Posted June 13, 2008 Share Posted June 13, 2008 Basically I want to be able to send an email and have it somehow make its way into a mysql database. What is the best way to do this? This is all I can think of :::: Have a PHP mail script read an mail account and then if there is a message from a certain sender insert it into the database, then after the script checks for new emails and inserts them, print all the existing records in the database. ::: I can't really think of anything else and would really appreciate any suggestions. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/110022-have-php-receive-an-email-and-insert-it-into-a-database/ Share on other sites More sharing options...
bluejay002 Posted June 13, 2008 Share Posted June 13, 2008 so basically you are asking sending emails then check for replies and save such replies into a database. is that what you mean? Quote Link to comment https://forums.phpfreaks.com/topic/110022-have-php-receive-an-email-and-insert-it-into-a-database/#findComment-564566 Share on other sites More sharing options...
android6011 Posted June 13, 2008 Author Share Posted June 13, 2008 no, like I want to update mywebsite from my phone, but I dont want to worry about sms at the moment so I am sending over email. So the email will go to an inbox and I want the script to check the inbox, insert the email message into database, delete the message Quote Link to comment https://forums.phpfreaks.com/topic/110022-have-php-receive-an-email-and-insert-it-into-a-database/#findComment-564940 Share on other sites More sharing options...
Darklink Posted June 13, 2008 Share Posted June 13, 2008 You will want to check out the IMAP functions that php provides you (in an extension). I've done it before. Quote Link to comment https://forums.phpfreaks.com/topic/110022-have-php-receive-an-email-and-insert-it-into-a-database/#findComment-564975 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.