Install nodemailer, update NPM packages, update mail template

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-04-01 10:42:20 +01:00
parent fe9eeae7db
commit 28d72b128e
4 changed files with 516 additions and 2171 deletions

2677
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,6 +5,7 @@
"express": "^4.18.2", "express": "^4.18.2",
"ldbs-json": "^1.2.1", "ldbs-json": "^1.2.1",
"mongodb": "^4.13.0", "mongodb": "^4.13.0",
"nodemailer": "^6.9.1",
"string-sanitizer-fix": "^2.0.1" "string-sanitizer-fix": "^2.0.1"
}, },
"name": "owlboard", "name": "owlboard",

View File

@ -10,6 +10,13 @@
</td> </td>
<td> <td>
<h1>Register for OwlBoard</h1> <h1>Register for OwlBoard</h1>
<p>Use the link below to register for OwlBoard (Staff Version)</p>
<a href="">Register</a>
<br>
<p>The registration will apply only to the device you click this link on,
you can use the same email to register on other devices but you will
need a separate registration link.
</p>
</td> </td>
</tr> </tr>
</table> </table>

View File

@ -1,5 +1,5 @@
const log = require('../utils/log.utils') const log = require('../utils/log.utils')
const mail = require('some-mail-module') const mail = require('node-mailer')
async function sendTest() { async function sendTest() {
// Send test mail message // Send test mail message