fox send email error
This commit is contained in:
parent
fa18625bc1
commit
e394325eb7
15
.env
15
.env
@ -11,15 +11,24 @@ CLOUDINARY_NAME = "dhkmsthix"
|
|||||||
CLOUDINARY_API_KEY = "938923891277448"
|
CLOUDINARY_API_KEY = "938923891277448"
|
||||||
CLOUDINARY_API_SECRET = "KkjTq-3v_vZpWqiOEnnWmGf7DoM"
|
CLOUDINARY_API_SECRET = "KkjTq-3v_vZpWqiOEnnWmGf7DoM"
|
||||||
|
|
||||||
SEND_EMAIL_FROM="project.boloai@gmail.com"
|
# SEND_EMAIL_FROM="project.boloai@gmail.com"
|
||||||
|
|
||||||
|
# # Bolo Ai
|
||||||
|
# SENDGRID_API_KEY="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"
|
||||||
|
|
||||||
|
# SMPT_HOST="smtp-relay.brevo.com"
|
||||||
|
# SMPT_PORT="587"
|
||||||
|
# SMPT_MAIL="beameri.team@gmail.com"
|
||||||
|
# SMPT_PASSWORD="xsmtpsib-a88c224860249a3f1e0765e0e3d119c1bf07ad21f2859318fbf50975deee1711-JrdPpfsvF6LwEn4A"
|
||||||
|
SEND_EMAIL_FROM="project.printsigns@gmail.com"
|
||||||
|
|
||||||
# Bolo Ai
|
# Bolo Ai
|
||||||
SENDGRID_API_KEY="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"
|
SENDGRID_API_KEY="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"
|
||||||
|
|
||||||
SMPT_HOST="smtp-relay.brevo.com"
|
SMPT_HOST="smtp-relay.brevo.com"
|
||||||
SMPT_PORT="587"
|
SMPT_PORT="587"
|
||||||
SMPT_MAIL="beameri.team@gmail.com"
|
SMPT_MAIL="project.printsigns@gmail.com"
|
||||||
SMPT_PASSWORD="xsmtpsib-a88c224860249a3f1e0765e0e3d119c1bf07ad21f2859318fbf50975deee1711-JrdPpfsvF6LwEn4A"
|
SMPT_PASSWORD="CBNyJ4bZ3XR1IUDc"
|
||||||
|
|
||||||
PAYPAL_CLIENT_ID="AemCjVuWswklp1sWUo4peCFg9eS4bofMsMR0RCrVRB2DifYR1IUSrWqtHpVmQlrVMKTI2cWZXLJAdYwn"
|
PAYPAL_CLIENT_ID="AemCjVuWswklp1sWUo4peCFg9eS4bofMsMR0RCrVRB2DifYR1IUSrWqtHpVmQlrVMKTI2cWZXLJAdYwn"
|
||||||
PAYPAL_CLIENT_SECRET="EAo0Y9ff3jpHHg1QAbftdebfh7cb_-vnebhQrP9KALbCVer908yx2tO2eHO39r7EJSfqc4D69Qgx8R31"
|
PAYPAL_CLIENT_SECRET="EAo0Y9ff3jpHHg1QAbftdebfh7cb_-vnebhQrP9KALbCVer908yx2tO2eHO39r7EJSfqc4D69Qgx8R31"
|
@ -117,7 +117,7 @@ export const forgotPassword = async (req, res, next) => {
|
|||||||
password.lower,
|
password.lower,
|
||||||
password.digits]
|
password.digits]
|
||||||
})
|
})
|
||||||
|
console.log(passwords);
|
||||||
user.password = passwords;
|
user.password = passwords;
|
||||||
await user.save()
|
await user.save()
|
||||||
// const message = `Your password reset token are :- \n\n ${resetPasswordUrl} \n\nyour new password is:${password}\n\nIf you have not requested this email then, please ignore it.`;
|
// const message = `Your password reset token are :- \n\n ${resetPasswordUrl} \n\nyour new password is:${password}\n\nIf you have not requested this email then, please ignore it.`;
|
||||||
@ -129,7 +129,7 @@ export const forgotPassword = async (req, res, next) => {
|
|||||||
|
|
||||||
from: `${process.env.SEND_EMAIL_FROM}`, // Change to your verified sender
|
from: `${process.env.SEND_EMAIL_FROM}`, // Change to your verified sender
|
||||||
|
|
||||||
subject: `Bolo Ai Password Recovery`,
|
subject: `The-solar-sign Password Recovery`,
|
||||||
html: `your new password is: <br/> <strong> ${passwords}</strong><br/><br/>If you have not requested this email then, please ignore it.`
|
html: `your new password is: <br/> <strong> ${passwords}</strong><br/><br/>If you have not requested this email then, please ignore it.`
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user