Convert the send_mail function to a class function and comment out the unused code
Convert the send approval email method to use send_mail and delete the commented otu code