listo, faltan correo y pruebas

This commit is contained in:
2022-04-17 22:23:39 -05:00
parent de238e3e50
commit a69574d529
23 changed files with 695 additions and 62 deletions
+2 -2
View File
@@ -5,9 +5,9 @@ const send = require('gmail-send')({
pass: process.env.GMAILPASSWORD,
});
const gmail = (subject, to, text) => {
const gmail = (subject, to, html) => {
return new Promise((resolve, reject) => {
send({ subject, to, text }, (error, result, fullResult) => {
send({ subject, to, html }, (error, result, fullResult) => {
if (error) reject(error);
console.log(fullResult);
resolve(result);