Suhosin compatible emails

Fix problems with Suhosin and sending emails trough php mail()
Merge pull request #2584 from PlamenVasilev/2.1-stable

Suhosin compatible emails