minor fix on mail sending