Changes in sendEmail