The sendEmail function now returns a boolean value indicating the
success/failure of the email being sent