Results 1 to 3 of 3

Thread: Simple Message Board Help

  1. #1

    Thread Starter
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    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.

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906
    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
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3

    Thread Starter
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697
    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
  •  



Click Here to Expand Forum to Full Width