Results 1 to 4 of 4

Thread: Forward Email to a Script

  1. #1
    Join Date
    Sep 2009
    Oakley, CA
    Rep Power

    Forward Email to a Script

    I am looking to forward email messages going to a particular address to a php script for processing.

    Similar to this...

    There is no option for setting this up in mailcentral. All forwards are only allowed to go to a valid email address. But it cannot forward to a php script.

    This is pretty important to me because I want to create a program that allows users to upload images from any device via email. SMS is the next challenge.

  2. #2
    PowWeb Staff
    Join Date
    Sep 2011
    Phoenix, AZ
    Rep Power
    Unfortunately, that's really outside the scope of our services - not something I've ever heard anyone request before! Our mail systems and website ones are really quite separate. I can't think of a way you can do it on our systems, as I doubt a script on the web side would even be able to connect to an email box, in order to check it for messages. Sorry!

  3. #3
    Join Date
    May 2002
    Minneapolis, MN
    Rep Power
    A script can connect with an Email system. That's why/how SquirrelMail works. It's just that the system shanimal referred to offers direct piping - a nifty feature, to be sure.

    The scripts sites have lots of examples, or you can start with the PHP IMAP Manual. You'd still have to set up a CRON job to get it to run periodically, of course, since the incoming Email won't trigger the script here. I wrote a simple mail reader script in Perl about a decade ago, intending to use it for a similar purpose. But I've never written one in PHP and I don't know how difficult it would be to parse out the attachments. I'd expect one of the scripts available online would have an example, though.
    Rick Trethewey

  4. #4
    target='_blank' snowmaker's Avatar
    Join Date
    Nov 2002
    West Virginia
    Rep Power
    Here's a script written by a member, who is here no longer. It used to work here, but I don't know if it still does, with the change and all.
    Read and auto-process mail
    -bruce /* somdcomputerguy */
    'If you change the way you look at things, the things you look at change.'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts