Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
📧 fix: Correct Handling of Self-Signed Certificates in `sendEmail` (#2148)
Danny Avilae4ac58012f0e
diff --git a/api/server/utils/sendEmail.js b/api/server/utils/sendEmail.jsindex 2f85f89dcd..d27b0409e1 100644--- a/api/server/utils/sendEmail.js+++ b/api/server/utils/sendEmail.js@@ -2,6 +2,7 @@ const fs = require('fs');const path = require('path');const nodemailer = require('nodemailer');const handlebars = require('handlebars');+const { isEnabled } = require('~/server/utils');const logger = require('~/config/winston');const sendEmail = async (email, subject, payload, template) => {@@ -13,7 +14,7 @@ const sendEmail = async (email, subject, payload, template) => {requireTls: process.env.EMAIL_ENCRYPTION === 'starttls',tls: {// Whether to accept unsigned certificates- rejectUnauthorized: process.env.EMAIL_ALLOW_SELFSIGNED === 'true',+ rejectUnauthorized: !isEnabled(process.env.EMAIL_ALLOW_SELFSIGNED),},auth: {user: process.env.EMAIL_USERNAME,