Ideally set it up on the upe.seas.ucla.edu server. Use this server to send all testbank mail. Make sure to change relevant lines:
|
async init() { |
|
const testAccount = await nodemailer.createTestAccount() // from ethereal.email |
|
this.#transporter = nodemailer.createTransport({ |
|
host: 'smtp.ethereal.email', |
|
port: 587, |
|
secure: false, // true for 465, false for other ports |
|
auth: { |
|
user: testAccount.user, |
|
pass: testAccount.pass |
|
} |
|
}) |
|
} |
As per #16 , these constants should be passed in via env vars eventually.
Ideally set it up on the upe.seas.ucla.edu server. Use this server to send all testbank mail. Make sure to change relevant lines:
UPE-Website-V2/backend/src/mailer.js
Lines 13 to 24 in 05f09da
As per #16 , these constants should be passed in via env vars eventually.