[Ronald] fix mail sending exception