Hi All,
I need to manipulate (modify headers, check body for certain strings etc, append footer texts etc..) every outgoing email. How can this be done. I have been googling for a long time but no good clue...
I am considering the following options...
(1) I can pipe every outging email to a PHP script which will do the necessary manipulation and then forward the email to SMTP. I wonder if this is possible
(2) I can pipe every outgoing mail to MySQL. I can then use PHP scripts to manipulate the email and fwd it to the SMTP.
(3) I will have to write a PHP script (whch will behave like an SMTP server) and bind it to port XX. The Email clients can be configured to deliver the email to Port XX instead of port 25. I don't really know how complicated this PHP script will be !!
Any inputs, pointers are deeply thanked. I am open to using Sendmail / Postfix / Qmail.
regards, Sans
__________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/