Fix send email handler