Fix returned value for email sending