Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

806 B
Raw Blame
export const generateMailToLink = (email: string, subject?: string, body?: string): string => {
  let mailtoLink = `mailto:${email}`

  if (subject) mailtoLink += `?subject=${encodeURIComponent(subject)}`

  if (body) mailtoLink += `&body=${encodeURIComponent(body)}`

  return mailtoLink
}

export const mailToSupport = (
  account: string,
  plan: string,
  version: string,
  supportEmailAddress?: string,
) => {
  const subject = `Technical Support Request ${plan} ${account}`
  const body = `
    Please do not remove the following information:
    -----------------------------------------------
    Current Plan: ${plan}
    Account: ${account}
    Version: ${version}
    Platform:
    Problem Description:
  `
  return generateMailToLink(supportEmailAddress || '[email protected]', subject, body)
}