Email pipe to PHP script not getting whole string if email exceeds 1MB
-
Finally found the solution by using ChatGPT. Additionally, you may try changing the mailRead function to read the input in larger chunks than 1KB. For example, you can change the line $sEmail .= fread($fp, 1024); to $sEmail .= fread($fp, 8192);, which reads 8KB at a time. This will reduce the number of iterations required to read the email, which might improve the performance. So I just changed the value of 1024 to 8192 in the following script and now it's working fine: 0 -
I'm glad you were able to find a good solution! 0
Please sign in to leave a comment.
Comments
2 comments