• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
    • Questions
    • Teachers
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

124
Views
Nodemailer envelope

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.

almost 3 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error