Page 1 of 1
How Can I Run PHP file in SMTP Server
Posted: Fri Jun 01, 2007 1:53 am
by KKLR
Hi..All
I have one task to solve.
Task is :
When I'm sending the mail from OUTLook Express... I should be able to run the php file to save the those data ( Subject,body content) into database.
Is it possible..?
If possible how can I do that...
Please give the valueble solutions.
Thank you
Posted: Fri Jun 01, 2007 7:14 am
by feyd
Unless you add hooks to your server, I would say not even remotely possible.
Posted: Fri Jun 01, 2007 8:57 am
by Arawn
On cPanel servers, you can add an email alias which allow you to use a pipe "|" to kick off a PHP script. Usually looks something like:
Code: Select all
|/usr/local/bin/php /home/username/public_html/script.php
Check out:
http://www.evolt.org/article/Incoming_M ... index.html
Posted: Fri Jun 01, 2007 9:08 am
by feyd
Last I checked, that would be for incoming mail Arawn. KKLR wants it for outgoing mail, I believe.
Posted: Fri Jun 01, 2007 9:42 am
by Arawn
feyd wrote:Last I checked, that would be for incoming mail Arawn. KKLR wants it for outgoing mail, I believe.
I just throw it out there but how about blind copy? Not exactly elegant ... eh?
Somewhere I bet there's a better solution at the root level. Doesn't Exim have filter files?
Posted: Fri Jun 01, 2007 10:02 am
by timvw
A 'trick' would be to run an immediary smtp server (does outlook use smtp? or a propriatary version?) that dispatches the e-mail to a php script...