Refactors code to provide an administration form, access permission, a configurable destination email address, and updated attachment handling.