sending mail func moved to modules.__init__