Suporte ao provedor SMTP

Adiciona suporte ao envio de e-mails via protocolo SMTP, além do já existente provedor SendGrid. Agora é possível selecionar entre "sendgrid" ou "smtp" por meio da variável `EMAIL_PROVIDER`.

Novas variáveis de ambiente:
• EMAIL_PROVIDER="smtp" # ou sendgrid
• SMTP_HOST="your-smtp-host"
• SMTP_FROM="noreply-smtp@yourdomain.com"
• SMTP_USER="your-smtp-username"
• SMTP_PASSWORD="your-smtp-password"
• SMTP_PORT=587
• SMTP_USE_TLS=true
• SMTP_USE_SSL=false
This commit is contained in:
OrionDesign
2025-05-14 18:53:21 -03:00
parent 958eeec4a6
commit add128f4d5
3 changed files with 148 additions and 84 deletions
+13
View File
@@ -34,9 +34,22 @@ JWT_EXPIRATION_TIME=3600
# Encryption key for API keys
ENCRYPTION_KEY="your-encryption-key"
# Email provider settings
EMAIL_PROVIDER="sendgrid"
# SendGrid
SENDGRID_API_KEY="your-sendgrid-api-key"
EMAIL_FROM="noreply@yourdomain.com"
# SMTP settings
SMTP_HOST="your-smtp-host"
SMTP_FROM="noreply-smtp@yourdomain.com"
SMTP_USER="your-smtp-username"
SMTP_PASSWORD="your-smtp-password"
SMTP_PORT=587
SMTP_USE_TLS=true
SMTP_USE_SSL=false
APP_URL="https://yourdomain.com"
LANGFUSE_PUBLIC_KEY="your-langfuse-public-key"