|
| Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Registered
Join Date: Sep 2009
Location: Oakley, CA
Posts: 7
Reputation: 0
|
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... http://kb.siteground.com/article/How...HP_script.html 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 |
|
PowWeb Staff
Join Date: Sep 2011
Location: Phoenix, AZ
Posts: 93
Reputation: 76
|
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 |
|
Rick
Join Date: May 2002
Location: Minneapolis, MN
Posts: 1,695
Reputation: 280
|
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 |
|
Join Date: Nov 2002
Location: Solomons Island
Posts: 3,119
Reputation: 318
|
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.' |
|
|
|
![]() |
| Thread Tools | |
|
|