adding send_mail action to the api