|
-
Nov 29th, 2004, 05:10 AM
#1
Thread Starter
PowerPoster
Simple Message Board Help
I'm trying to creating a simple message board for my work similar to the boards at yahoogroups.com. If you're not familar with yahoogroups a user can email a message to the board without having to login to yahoo. They simply email a message to the name of the group (eg [email protected]) and the email address, email subject and email body are all saved as a new message.
I've set up an email address for my group ([email protected]) so my question is how would I get the email address, email subject and email body to save as a new message? I can save the info into my sql db no troubles it's getting the info in the first place.
Hopefully this all makes sense 
Thanks.
-
Nov 30th, 2004, 06:30 AM
#2
You'll need to have PHP installed as a CGI binary and a mail transfer agent (MTA) such as sendmail. You then just need to configure your MTA to pass all e-mail to a particular addreess to your PHP script.
The e-mail will be passed to the script through its standard input, you can grap a handle to this using the following fopen call:
$email = fopen('php://stdin', 'r');
You then just treat it as a normal file, sing the normal file operation functions.
Here's an article which may help:
http://www.devpapers.com/article/155
-
Nov 30th, 2004, 09:20 PM
#3
Thread Starter
PowerPoster
Thanks visualAd, it looks like what i'm after.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|