Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: email to php display emails on my site

  1. #11
    Join Date
    Sep 2007
    Posts
    21
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    wow thank you so much u really rock , will wait

  2. #12
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Ok, new update. The source code is at http://thetestingsite.net/test/demo/test.phps. You will need to make the database table with the following columns:

    id, email, date, filename

    Of course, you could change it, but you would also need to change the code in the php file. In any case, the config info is at the top of the file.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. The Following User Says Thank You to thetestingsite For This Useful Post:

    flash (04-27-2008)

  4. #13
    Join Date
    Sep 2007
    Posts
    21
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    god that was so fast , i'll give it a try thank you SO much!

  5. #14
    Join Date
    Sep 2007
    Posts
    21
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    just two more questions please , is there a easy way i can restrict only for to recive and accept emails from a certian email address? (just one) no biggie i wont publish it anywhere should be ok if its difficult , maybe on the mail server options theres an option to forward all emailsl except from one.
    and another question .
    I should be able to do a cronjob of the script using a simple cron lynx command right?
    thank you so much again!

  6. #15
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    For the first question, you would have to limit the account in the mail server. Not sure how you would do it, but I know it is possible. For the second question, yes you could use cron (or scheduled tasks on a windows machine) to run the file every so often. I would not recommend you set this time for less than every 10 minutes as it would become very server intensive.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  7. The Following User Says Thank You to thetestingsite For This Useful Post:

    flash (04-27-2008)

  8. #16
    Join Date
    Sep 2007
    Posts
    21
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    yeah you're right .
    i'm going to give the new script a try now.
    I hope thats enough things in db to to keep going , should be enough.


    update : works perfectly


    oh wow forgot one important thing , is there a way to add the subject and the content of the message to the db too? sorry! pushing it.
    Last edited by flash; 04-27-2008 at 03:09 PM.

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
  •