rudimentary functions are working, just the sending of emails is missing