defined body in sendEmail method