Web Hosting Talk







View Full Version : Email Autoresponding, Is it Possible to redirect??


Oras
11-11-2005, 01:03 PM
Hi ...
Is there a way to run a page instead of sending email? to be clear:
I have email somename@somedomain.com, I want to make an autorespose but not by sending email to the sender, instead I want to run a page: do_something_when_receiving.php

Is it possible? & before you ask ,,, I want to make it on a linux Server not Windows
Thank you
Oras

azizny
11-11-2005, 01:56 PM
Hi ...
Is there a way to run a page instead of sending email? to be clear:
I have email somename@somedomain.com, I want to make an autorespose but not by sending email to the sender, instead I want to run a page: do_something_when_receiving.php

Is it possible? & before you ask ,,, I want to make it on a linux Server not Windows
Thank you
Oras

ofcouse its possible, but you have to edit the mail catcher to run the php page..

where that file is, I have no idea..

and i think it will be either in Korn or Bash shell scripting language..

Peace,

folsom
11-11-2005, 04:45 PM
You can use procmail to run scripts when you get new mail.

Oras
11-12-2005, 05:57 AM
Thank you for your replies ... I'll check procmail, but I thought that it can be done using a small single file like the .htaccess :)

BurakUeda
11-12-2005, 09:55 AM
Are you using any control panel?
in cPanel it is quite easy...

Burhan
11-12-2005, 10:06 AM
no, .htaccess does not work here since this process doesn't have anything to do with the web server.

You can use procmail, or exim and then pipe the email to a script that does whatever you want.

Or, if this is not time sensitive -- you can write a script, run it on cron that checks the mailbox and performs whatever actions you want when a new message arrives.

Just so we are all clear -- by 'run a page' you mean 'run a script'.