send_mail: use civicrm_api(), not api3(), for better backwards compat.