Home > Mail > Can I pipe email messages to any file (script)?

Can I pipe email messages to any file (script)?

To do this, you need to create an email forwarder in cPanel -> Forwarders. When creating the forwarder, choose Advanced Options and then Pipe to a Program option.

After that, put in the path of the file/program you wish to send the mail to. Please refer to your script documentation for more details.