I need a PHP script to forward any email atachment incoming to a particular address to another, according with a word in the subject of the primary email.
I need the script to replace the message body with a customizable text (different for each address).
Example:
Primary email (to check) : test(at)example.com
Subject: “dog”, or “my dog”, or “anything else about my dog”
Body: “bla bla bla bla bla bla bla bla”
Attachment: mydog.jpg or mydog.wav of mydog.mov, etc…
——–>
This mail must be forwarded to: animals(at)example.com
Subject: “Animals Email”
Body: Receved at xx:xx AM
Attachment: mydog.jpg or mydog.wav of mydog.mov, etc…