Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

536 B
Raw Blame
pub(crate) static INVITE_USER_SUBJECT: &str = "Invitation to Macro";

/// Builds the user invite message
pub(crate) fn build_user_invite_message(org_name: &str, environment: &str) -> String {
    let prefix = match environment {
        "prod" => "".to_string(),
        _ => format!("{}.", environment),
    };

    let result = include_str!("../templates/invite_user.html");

    let result = result.replace("{PREFIX}", prefix.as_str());
    result.replace("{ORG_NAME}", &html_escape::encode_text(org_name))
}

#[cfg(test)]
mod test;