email.tsā¢1.19 kB
// Email configuration
export const emailConfig = {
// SMTP Configuration - Update these with your email provider settings
smtp: {
host: process.env.SMTP_HOST || "smtp.gmail.com",
port: parseInt(process.env.SMTP_PORT || "587"),
secure: process.env.SMTP_SECURE === "true", // true for 465, false for other ports
auth: {
user: process.env.SMTP_USER || "your-email@gmail.com",
pass: process.env.SMTP_PASS || "your-app-password",
},
},
// Default sender information
defaultFrom: {
name: "MCP Server",
email: process.env.SMTP_USER || "your-email@gmail.com",
},
// Email templates
templates: {
default: {
subject: "Notification from MCP Server",
html: `
<div style="font-family: Arial, sans-serif; max-width: 600px; margin: 0 auto;">
<h2 style="color: #333;">MCP Server Notification</h2>
<div style="background-color: #f5f5f5; padding: 20px; border-radius: 5px; margin: 20px 0;">
{{body}}
</div>
<p style="color: #666; font-size: 12px;">
This email was sent from the MCP Server application.
</p>
</div>
`,
},
},
};