Admin can send a POST request to endpoint /api/invite with payload {"emailAddress":"test@example.com"}.
This will generate and store a unique invitation id alongside the emailAddress in mongoDB.
An email will be sent to the address specified using nodemailer package via the SMTP server that can be specified using environment variables.
The user who receives the email can send ONE submission via POST request.
The submission is then stored with the invitationId in mongoDB.
Admin can send a
POST
request to endpoint /api/invite with payload{"emailAddress":"test@example.com"}
. This will generate and store a unique invitation id alongside the emailAddress in mongoDB.An email will be sent to the address specified using
nodemailer
package via theSMTP
server that can be specified using environment variables.The user who receives the email can send ONE submission via
POST
request.The submission is then stored with the invitationId in mongoDB.
nodemailer: https://github.com/nodemailer/nodemailer
smtp4dev: https://github.com/rnwood/smtp4dev