Time for me to ask a question:
Given that I have devloped a PHP/MySql based internet forum:
A.) Users can set preferences to recieve posts via:
I email
II web only
III via digest (a chron script that trips off a PHP script)
B.) This is all well and good, providing the host ever does the chron script
correctly.
C.) And my main question - currently all replies have to be via web.
All users and posts are kept in a database. What must I do to enable
people to respond to the posts via email, have the posts trigger something to put them into the database and be viewable online, and also send the replies via email to those set with the email option - sort of like Yahoo groups.
If I have asked this question before, I apologize!
Any thoughts appreciated and welcome.
Phil J.
Capturing incoming Emails via PHP or whatever...
Moderator: General Moderators
-
fractalvibes
- Forum Contributor
- Posts: 335
- Joined: Thu Sep 26, 2002 6:14 pm
- Location: Waco, Texas
If I understand correctly, you want to take all incoming mail from a specific account and have the contents entered into a database?
If so, to do this, you would have to make changes to the configuration of the incoming mail server. With sendmail, you can set up an alias that is redirected to a script (PHP or Perl) or an application that will parse the e-mail and put the necessary information into a databse.
Having it send replies out by e-mail would either mean running a cron job, have the PHP script send them itself (rather inefficient) or execute an external script to send them.
I've done something similar with perl and sendmail. I can send you some more info if you'd like.
If so, to do this, you would have to make changes to the configuration of the incoming mail server. With sendmail, you can set up an alias that is redirected to a script (PHP or Perl) or an application that will parse the e-mail and put the necessary information into a databse.
Having it send replies out by e-mail would either mean running a cron job, have the PHP script send them itself (rather inefficient) or execute an external script to send them.
I've done something similar with perl and sendmail. I can send you some more info if you'd like.