I Have strange problem with Nodemailer envelope, My need is to get duplicated email from contact form, one goes to people who fill form and second is myself.
My Code:
const mailSend = {
from: 'info@xxx',
to: req.body.email,
subject: `New Message`,
text: req.body.message,
envelope: {
from: req.body.email,
to: 'info@xxx'
}
This way when im adding envelope mails are sending only from envelope, but original not, when im deleting envelope, then works as usual. So, to make it work, i just added bcc, but still im wondering what im doing wrong.
So, to make it work, i just added bcc, but still im wondering what im doing wrong. Correct way should be without bcc, but with envelope, but cant make that work.