confirmed that sendEmail receives valid inputs and executes properly