master
sendViaEmail
export async function sendViaEmail( data: { rid: string; toUsers: string[]; toEmails: string[];