export function generateEmailHtml(language: string, content: { title: string; body: string; code?: string; actionUrl?: string; actionText?: string; }) { const isDe = language === 'de'; const footerText = isDe ? "Diese E-Mail wurde automatisch gesendet. Bitte antworten Sie nicht darauf." : "This email was sent automatically. Please do not reply."; const siteUrl = process.env.VITE_PUBLIC_APP_URL || "http://localhost:5001"; const logoUrl = `${siteUrl}/favicon.png`; return `

${content.title}

${content.body}

${content.code ? `
${content.code}
` : ''} ${content.actionUrl ? ` ` : ''}

${isDe ? 'Dieser Code läuft in 10 Minuten ab.' : 'This code expires in 10 minutes.'}

`; }