PDA

View Full Version : phpBB + newpost2mail random mail header problem



jawildey
11-11-2011, 11:39 AM
Hi,

I have phpBB v. 3.0.9 installed and I've added a mod called newpost2mail which will send every post to a phpBB defined group. I have modded the mod a little and added code to strip out all html and bbcode so as to make the emails text only.

I've since started getting random bounces due to a malformed (ie. garbage) mail header. It's not consistent but seems to be related to the load on the server. If I edit the post and submit it a few times eventually I can get it to go through. My guess was that the PHP script was timing out during one of the steps and causing some corruption. I've modified the php.ini file to have a timeout of 90 seconds instead of the default 30 and that seems to have had no affect. I've verified that that domain is picking up the correct php.ini file via a php_info test page.

Does anybody have any thoughts about what might be causing this? It doesn't appear that it's a coding error since I can eventually get it to go through.

Thanks,
--Joe

jawildey
11-11-2011, 01:54 PM
I think I found a workaround by hard coding the From header rather than using the $config variables. Those seem to be getting corrupted somewhere along the lines. Feel free to post your suggestions for an actual fix, though, and I'll give them a try.