浏览代码

Added email configuration file

rota3015 7 月之前
父节点
当前提交
513cf89e3a
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      config/email.config

+ 13 - 0
config/email.config

@@ -0,0 +1,13 @@
+const nodemailer = require('nodemailer');
+
+const transporter = nodemailer.createTransport({
+  host: process.env.CLOUDRON_MAIL_SMTP_SERVER, // Replace with your email server host
+  port: process.env.CLOUDRON_MAIL_SMTP_PORT, // Replace with your email server port
+  secure: false, // false for non-SSL, true for SSL/TLS
+  auth: {
+    user: process.env.CLOUDRON_MAIL_SMTP_USERNAME, // Replace with your email username
+    pass: process.env.CLOUDRON_MAIL_SMTP_PASSWORD // Replace with your email password
+  },
+});
+
+module.exports = transporter;