05Aug

is it possible to schedule a script to run each time I recieve a new email in my webmail account?

1 comment so far


I want to be able to save incoming emails to a mysql database using a php script. I want the script to be executed each time I received and email in my cpanel webmail.

Please could some one give me a link where I can get resource on how to go about such.

Thanks in advance.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • StumbleUpon
  • Reddit
  • Webnews
  • MisterWong
  • Y!GG
Categories: Programming & Design

Thursday, August 5th, 2010 at 5:05 pm and is filed under Programming & Design. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

One Response to “is it possible to schedule a script to run each time I recieve a new email in my webmail account?”

  1. Posted by joe.attaboy 6th August, 2010 at 5:48 pm

    You would have to have administrative control over the mail application used in cpanel. I can’t give you specifics, but I would imagine that if you have full access to the mail server application, you could write up a Perl script that would do this for you.

    What about this alternative? On a regular basis, download a copy of the mailbox file (most *nix systems keep the user mail in a single file), and write a Perl script to parse through it, break it up into fields, and write it out to the database. You can then delete the mailbox file, which will in effect “empty” the mailbox.

Leave a reply