error 550 Domain not allowed in header from
02:05 02 Jan 2021

I am trying to get namecheap c-panel email hooked up with my nodemailer server instance but I am unable to find how to do that.

here is my nodemailer code

let transporter = nodemailer.createTransport({
   host: "premium174.web-hosting.com",
   port: 465,
   secure: true,
   auth: {
      user: username,
      pass: password
   },
   connectionTimeout: 30000
});

from part in the sendMail method contains the email I am logging in to

I am able to establish a connection the server using these details but I can't send any email, AT ALL. anytime I try to send it the error I get is

code: 'EENVELOPE',
  response: '550-"Your IP: my-ip-here : Your domain domain-here is not allowed in header\n' +
    '550 From"',
  responseCode: 550,
  command: 'RCPT TO'

the send mail part is all correct and it works with the other emails I have but this one just would not work

node.js nodemailer namecheap