emailjs / emailjs-imap-client

Low-level JS IMAP client for all your IMAP needs.
MIT License
552 stars 123 forks source link

How to add other parameters #243

Open fromb2b opened 4 years ago

fromb2b commented 4 years ago

Hi

I followed this react emailjs tutorial: https://www.emailjs.com/docs/examples/reactjs/

The problem I face is that I should send some order details I get from another component in the webform. What I did is add "order" as a prop to ContactUs component. Now I should figure out a way to integrate it in the form or otherwise pass it directly (I already defined "order" in my email template).

I tried this: emailjs.sendForm('gmail', 'vente', {e.target, order:{order}}, 'user_NICP9HhE4kLASsvjN3bdI') but with no success

Thank you for your recommandations.