pretendo-docker/patches/website/mailer-disable.patch
Matthew Lopez 918a904081
Add the Pretendo Network website server
Lots of patches here because the server crashes if Stripe, GitHub, Discord, etc. are not configured.
2023-12-18 20:56:28 -05:00

24 lines
530 B
Diff

diff --git i/src/mailer.js w/src/mailer.js
index 283dabc..71d8318 100644
--- i/src/mailer.js
+++ w/src/mailer.js
@@ -1,17 +1,8 @@
const nodemailer = require('nodemailer');
const config = require('../config.json');
-const transporter = nodemailer.createTransport({
- host: 'smtp.gmail.com',
- port: 587,
- secure: false,
- auth: {
- user: config.gmail.user,
- pass: config.gmail.pass
- }
-});
-
async function sendMail(options) {
+ return;
options.from = config.gmail.from;
return await transporter.sendMail(options);