basic structure of the mailing plugin