Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Newbie question - automatically entering data into mySql
  • Posted: 30.11.2005, 18:55
     
    kingsburyyeats
    rank:
    Freshman Freshman
    registered:
     November 2005
    Status:
    offline
    last visit:
    08.12.05
    Posts:
    2
    I have a PN site set up with Qmail and mySql.

    I want to use it to automatically enter data received by email into the appropriate mySQL table. The data being sent is a list, separated by commas with a stride length of three. The table it should be entered into depends on the email subject line.

    Does any one know how I can do this?
  • Posted: 02.12.2005, 22:23
     
    csteelatgburg
    rank:
    Helper Helper
    registered:
     October 2002
    Status:
    offline
    last visit:
    23.01.07
    Posts:
    192
    There are a few pieces that you need:

    1. You have to setup the mail server to forward messages to a script. There's a good writeup and that here:
    http://www.theukwebd…p-incoming-mail.php

    2. Next, you need to have a script which will access your MySQL tables. You can have the script call the PostNuke functions, and this has been discussed in the forums in a couple of threads, or, you could write your own PHP code to perform the SQL inserts.

    3. You'll obviously need some logic in the script to parse the incoming email to get the data you want to actually enter. You'll probably also want to perform some error checking on that data to make sure you're only entering proper information.

    So, in short, yes it is possible. How easy it will be depends on how much programming experience you have, I guess.

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula