[api] test the emails sent out