there was a missing dot on in the sendEmail() method