Put all mail API functions in mail_client.