Files
egutierrez 47fac22230 chore: auto-commit (799 archivos)
- .claude/CLAUDE.md
- .claude/commands/subagentes.md
- .claude/rules/INDEX.md
- .mcp.json
- bash/functions/cybersecurity/analyze_dns.md
- bash/functions/cybersecurity/audit_http_headers.md
- bash/functions/cybersecurity/audit_ssh_config.md
- bash/functions/cybersecurity/check_firewall.md
- bash/functions/cybersecurity/detect_suspicious_users.md
- bash/functions/cybersecurity/encrypt_file.md
- ...

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 00:28:20 +02:00

1.5 KiB

name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path
name kind lang domain version purity signature description tags uses_functions uses_types returns returns_optional error_type imports params output tested tests test_file_path file_path
email_build_html function go infra 1.0.0 pure func EmailBuildHTML(from string, to []string, subject, bodyHTML string) EmailMessage Construye un EmailMessage con cuerpo HTML. Retorna una nueva estructura sin CC, BCC, adjuntos ni headers custom.
email
smtp
html
builder
pendiente-usar
EmailMessage_go_infra
EmailMessage_go_infra
false
name desc
from direccion del remitente (ej: 'Alice <alice@example.com>')
name desc
to lista de direcciones de destinatarios principales
name desc
subject asunto del correo
name desc
bodyHTML contenido HTML del cuerpo del mensaje
EmailMessage listo para enviar con cuerpo HTML true
construye mensaje html con campos basicos
copia el slice to para evitar aliasing
campos no usados quedan vacios
functions/infra/email_build_test.go functions/infra/email_build_html.go

Ejemplo

msg := EmailBuildHTML(
    "alice@example.com",
    []string{"bob@example.com", "carol@example.com"},
    "Reporte mensual",
    "<h1>Hola</h1><p>Ver adjunto.</p>",
)
// msg.BodyHTML = "<h1>Hola</h1><p>Ver adjunto.</p>"
// msg.BodyText = ""

Notas

Funcion pura. Copia el slice to para evitar aliasing con el caller. Para anadir adjuntos usar EmailWithAttachment. Para texto plano usar EmailBuildText.