Skip to content

How to add other parameters #243

@fromb2b

Description

@fromb2b

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions