[4.2] Fixed Mail Send Function

Fixes #4403.