Add "remove" attribute to sendEmail function.