PHP E-mail Processing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • snowdonkey
    New Member
    • Aug 2006
    • 37

    #1

    PHP E-mail Processing

    Hey. I'd like to make a PHP script that takes the return address, subject, and message from an e-mail saves them as different variables?

    So for example: someone sends me an e-mail to me@mydomain.com from whatever client they use (Gmail, Yahoo Mail, Hotmail, etc.). The script receives the e-mail data. Then the script separates the sender, subject, and message as variables and puts them into respective MySQL table columns.

    How might I do this? Thanks!
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    See the following class at www.phpclasses.org PHP Email to DB
    Originally posted by phpclasses.org
    This class can retrieve messages from a mailbox and insert them into a MySQL database.

    The class retrieves and parses messages from a mailbox using the PHP IMAP extension.

    The parsed messages can be stored in a MySQL database table. Message attachments are stored in server files.

    The class can also perform some basic spam checking on the retrieved messages by verifying the sender address against a blacklist, and verify the existence of banned words in the message subject or body. The sender blacklist and banned words are also stored in the database tables.

    The message processing activity is logged in a separate database table.

    The class can also retrieve the messages and logged actions from the database.
    Ronald :cool:

    Comment

    • snowdonkey
      New Member
      • Aug 2006
      • 37

      #3
      That's just it. Thanks again ronverdonk. :-)

      Comment

      Working...