Primitive mail script.  Yes this is somewhat repeated in server.py, I'll take care of it.