correo html

This commit is contained in:
2022-02-05 21:53:03 -06:00
parent 564be23729
commit c535ecc28a
+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);
resolve(result);
});