SMTP Server Account and Usage - mini/git-brunching GitHub Wiki
This SMTP server was set up so that the application can send the booking details to user. So that user can find their unique reservation ID for future modifications.
Credentials
It is NOT recommended to log in to this email directly and make any account modifications.
- Username: [email protected]
- Password: gitbrunch2020!
Usage
The following is the configuration used which leverages NodeMailer.
const nodemailer = require('nodemailer');
const transporter = nodemailer.createTransport({
service: 'gmail',
auth: {
user: '[email protected]',
pass: 'gitbrunch2020!'
},
tls: {
rejectUnauthorized: false
}
})
const { error } = await transporter.sendMail({
from: '[email protected]',
to: email,
subject: 'Booking Confirmation for ' + name,
text:
'You have booked a table for ' + numberOfGuests + '\n' +
'Time: ' + time + ' on ' + date + '\n' +
'Your reservation ID is: ' + reservationID
});
if (error) {
res.status(400).json({ error });
return;
}