Preliminary kaithem registry support
rough draft of mail send functions
one line fix