Email API gateway