I am a complete newbie with PHP. I searched the web and put together some pieces of code:
The this script does exactly what I want which is to change some specific text and then add to the file 'inbox'.
The problem is that even though the e-mail is recieved and saved in the 'inbox' file after replacing the specified text the sender of that e-mail gets a 'mail not delivered' message becuase when the script is run the
fwrite() returns the number of bytes written which sendmail thinks is an error and sends a 'mail not delivered' message back to the sender.
Does anyone know how to turn off the bytes written feature of
fwrite() or another function which does the same job but does not return any data?