Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add other parameters #243

Open
fromb2b opened this issue Aug 3, 2020 · 0 comments
Open

How to add other parameters #243

fromb2b opened this issue Aug 3, 2020 · 0 comments

Comments

@fromb2b
Copy link

fromb2b commented Aug 3, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant