Add some type hints to the sendEmail funcs