Dethman Posted January 22, 2009 Share Posted January 22, 2009 I need to know how to receive an email into an SQL table using PHP and SQL any ideas? Thanx, Brian Flores CEO NimbusGames,llc Link to comment https://forums.phpfreaks.com/topic/141882-sql-email-import/ Share on other sites More sharing options...
trq Posted January 22, 2009 Share Posted January 22, 2009 Theres a good free book in my signiture (Hudzilla) that has a chapter dedicated to using databases with php. Link to comment https://forums.phpfreaks.com/topic/141882-sql-email-import/#findComment-742854 Share on other sites More sharing options...
Dethman Posted January 22, 2009 Author Share Posted January 22, 2009 Ill ask again in a different way, Does any1 know any FREE tutorials on how to receive an email on an SQL table using PHP/SQL? The email is hosted on my server I just need to receive it and put it in a table with something like Subject, and message and date thats all, Thanx Brian Flores Link to comment https://forums.phpfreaks.com/topic/141882-sql-email-import/#findComment-742856 Share on other sites More sharing options...
trq Posted January 22, 2009 Share Posted January 22, 2009 Oh, now your actually starting to describe what you want to do. Good idea. Link to comment https://forums.phpfreaks.com/topic/141882-sql-email-import/#findComment-742866 Share on other sites More sharing options...
Dethman Posted January 22, 2009 Author Share Posted January 22, 2009 Thought it would be use full, is there a special function that receives emails, like say hotmail allows you to check emails? Link to comment https://forums.phpfreaks.com/topic/141882-sql-email-import/#findComment-742869 Share on other sites More sharing options...
trq Posted January 22, 2009 Share Posted January 22, 2009 Thought it would be use full, is there a special function that receives emails, like say hotmail allows you to check emails? So what your after is this.... When an email arrives on your mail server you would like some information stored within a database? PHP really isn't the best solution to the problem. Most MTAs however allow triggers of soughts that can execute shell scripts when mail arrives. Do you know what MTA you are using? Another solution (save digging into your MTA's configuration) would be to simply execute a script via cron every 5 minutes or so, this script could then check your inbox via imap and act accordingly. This really isn't a straight forward task. Link to comment https://forums.phpfreaks.com/topic/141882-sql-email-import/#findComment-742877 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.