Custom mailing function restored after barbarian refactoring.
Merge remote-tracking branch 'origin/master'