Mail stuff works as API now