FIX preg_replace_callback in emailer was broken

Fixes bug introduced by 9deb11f9a0ee01477af38f2826b2a7583545a0b6
Email has no content
This is what happens when we make commits without testing!
Merge pull request #2229 from ss23/patch-6

FIX preg_replace_callback in emailer was broken