Results 1 to 4 of 4

Thread: PHP Email / Response Verification

  1. #1
    Join Date
    Oct 2008
    Posts
    23
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default PHP Email / Response Verification

    I am trying to start up a site in which i let people respond to questions that i post without any sort of registration. However, i would still like to moderate the answers that are posted and added to the database.
    So far, i have managed to have an email sent to myself every time someone posts a response. From there, is it possible for me to respond to that email with a simple "Yes", or "No" and depending of which response it is, THEN post the response, or throw it out.
    Another add on i would love for this is if it could alternate between two email addresses, to have two people check them.

    Is something like this possible or am i barking up the wrong tree?
    Any advice is appreciated, thanks!

  2. #2
    Join Date
    Apr 2009
    Location
    Cognac, France
    Posts
    400
    Thanks
    2
    Thanked 57 Times in 57 Posts

    Default

    You would need to get the email address of the responder and store this with the response.

    You could then send an email Yes or No using this email address and depending on the response add/change status of the response or delete it.

    If you want to alternate email addresses you could have a table of checkers email addresses with a field/flag that indicates who should be the next checker.

    Your email program can look at this field to decide who to send the email to and set the flag to another email address.

  3. #3
    Join Date
    Oct 2008
    Posts
    23
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    For some reason i cant access my server currently, but i think my issue will be the following..
    When my site sends out an email to moderators, where will the email COME from?
    And when the moderator responds to the email, how can i take the content (ie yes, no) out of the email?

  4. #4
    Join Date
    Apr 2009
    Location
    Cognac, France
    Posts
    400
    Thanks
    2
    Thanked 57 Times in 57 Posts

    Default

    I don't fully understand your question about where will the email come from.

    When you create the email you can also do the following:

    PHP Code:
    $mailheaders "From: $email_address1 <> \n"
    $mailheaders .= "Reply-To: $email_address2\n\n"

    mail($myemail$subject$message ,  $mailheaders); 
    $email_address1 & $email_address2 can be the same or hard coded, ie in ""

    As to your second question, it depends on what they will use to respond, if by using the 'reply' function of their email or by a script. If by a script you can control what goes into the email.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •