How do I send input data form to email?

Hi everybody!

I just created and tested a custom contact form using the input elements from Editor X. Every form submission sends the data to the content manager database (collection) but I need the submitted messages to be sent to an email, just like most of the contact forms… Please tell me how to do that.

Thanks a lot!

1 Like

Wix has some functionality to do this.
It is called “Triggered Email”.

To use this functionality turn on Dev Mode. Then open dev tools in dashboard, then open Triggered Emails.
Here you can create a template with your mail that will be sent under some trigger (for example, click on “submit” button).

Template is able to have different variables. The variable is from velo IDE, where you write code. For example, the user types some text into some input or textarea, then the input.value or textarea.value goes to this variable, and then its value goes to the template mail. And after submitting the form the user receives email (he should point out his mail, where the template mail with text from variables will be sent)

You will have to add code to your site -

  • to create variables, to save input values to these variables

  • to use WiX API

  • to create a name to triggered email.

Here is the link to Wix Support where you can find useful articles which help you easily to create the triggered email.
https://support.wix.com/en/velo-by-wix/developer-tools

Also you have to use this Wix API to create an email
https://www.wix.com/velo/reference/wix-crm/emailcontact

Thanks, I try that.