dirty implementation of sending emails