SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Mail 2 MySQL

  1. #1
    SitePoint Member
    Join Date
    Oct 2002
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mail 2 MySQL

    On my hosted site, I can pipe email to a script (example, info@heartlevelminsitries.org ->> support.pl).

    I'm trying to find out if there is a sample script anywhere so I can have emails piped through that .pl file and inserted into an existing mySQL database.

    Anyone know of anything?

    Chris

  2. #2
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmmm, this is a really good question and something we're trying to answer for a hosting client who wants to do the same thing except, instead of data going to MySQL, the data would go to a file...I'm hoping we can get a Perl OR a PHP solution to this.

    Aaron
    Aaron Brazell
    Technosailor



  3. #3
    SitePoint Member
    Join Date
    Oct 2002
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    but but...

    there just has to be a way to do this :-p

  4. #4
    SitePoint Enthusiast
    Join Date
    Feb 2002
    Location
    CA, USA
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If I understand your question correctly, you're basically asking how to insert email addresses into a table in a MySQL database, correct? If that's the case, then what you're looking to use is the DBI module.

    http://dbi.perl.org/doc/index.html

    I wrote a Perl guestbook script that uses DBI to insert data into a MySQL database. Maybe you can grab some of that code to help get you started.

    http://www.codeproject.com/useritems/perlguestbook.asp
    Jon Sagara
    Y.A.P.P.

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
  •