We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trying to send email inside Promise.all using code: Promise.all(newResult) .then((resultsArray) => { let client = new SparkPost(process.env.EMAIL_SMTP_KEY); let emailDetails = { content: { from: "", subject: "", html: mailBody, }, recipients: [{ address: "" }], }; client.transmissions.send(emailDetails, (err, data) => { if (err) { console.log("Whoops! Something went wrong"); console.log(err); } else { console.log("Congrats you can use our client library!"); console.log(data); } }); })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
trying to send email inside Promise.all using code:
Promise.all(newResult)
.then((resultsArray) => {
let client = new SparkPost(process.env.EMAIL_SMTP_KEY);
let emailDetails = {
content: {
from: "",
subject: "",
html: mailBody,
},
recipients: [{ address: "" }],
};
client.transmissions.send(emailDetails, (err, data) => {
if (err) {
console.log("Whoops! Something went wrong");
console.log(err);
} else {
console.log("Congrats you can use our client library!");
console.log(data);
}
});
})
The text was updated successfully, but these errors were encountered: