Return the sendEmail function to it's owner