mirror of
https://github.com/MatthewL246/pretendo-docker.git
synced 2026-05-16 08:59:41 -05:00
Lots of patches here because the server crashes if Stripe, GitHub, Discord, etc. are not configured.
24 lines
530 B
Diff
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);
|