fix: correct nodemailer method name from createTransporter to createTransport

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
courtmanr@gmail.com
2025-06-01 21:08:16 +01:00
parent dd98d7707e
commit 2c61e09e76
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1011,7 +1011,7 @@ class AlertManager extends EventEmitter {
initializeEmailTransporter() {
if (process.env.SMTP_HOST) {
try {
this.emailTransporter = nodemailer.createTransporter({
this.emailTransporter = nodemailer.createTransport({
host: process.env.SMTP_HOST,
port: parseInt(process.env.SMTP_PORT) || 587,
secure: process.env.SMTP_SECURE === 'true', // true for 465, false for other ports
+1 -1
View File
@@ -776,7 +776,7 @@ app.post('/api/test-email', async (req, res) => {
// Create a temporary transporter for testing
const nodemailer = require('nodemailer');
const testTransporter = nodemailer.createTransporter({
const testTransporter = nodemailer.createTransport({
host: host,
port: parseInt(port),
secure: secure === true,