title: How to create new *.msg file with my data and attachments using existing *.msg as template in Nodejs?
body: <p>Does anybody know of any JavaScript libraries that could open existing *.msg  Outlook file created for example as template, and could use code to put data like to, subject, any {} other data and save it to disk as new.msg file?</p>
  
  <p>Explain detailed:
   I have customer data, like email, name, some other data and attachment pdf what i need to send to my customer.
  Olso I have created by Outlook software file customer.msg and would like to use it as template.</p>
  
  <p><strong>I need use Nodejs code to open *.msg file and put my customer data like "TO, SUBJECT, any data in the text places that are prepared in template {someData} and attachment to this email and save it for future sending.</strong></p>
  
  <p>What I have tryed:</p>
  
  <p>npm eml-format - for only creating emails what also support outlook, but only eml extension. It can not use *.msg files as templates.</p>
  
  <p>npm shild-process - for opening other files like *.msg, *.eml</p>
  
  <p>nodemailer - but this only for sendind emails and did not meet my requiments.</p>
  
  <p>I spend all day for finding solution and unsuccessfully. Help please. </p>