yet another mail api wrapper