Contact Form (different destination emails)

Hi, I need 4 different destination emails depending on the type of question chosen. I am planning to add drop down selection in the Contact form and I need all those 4 dropdown variables would send a message to different emails.

I have found this code in the forum , but it doesn’t work for me:


If someone would share the experience, would be grateful.

You should setup a hook (beforeInsert) instead of front end settings as it can be changed by some bad people.

Please see beforeInsert in the Velo doc and use “triggered email” to send form data to certain email address.

P.S. By using triggered email, you need to create a contact on Wix with the email in order to retrieve the contactId to get this sent.

Thank you, I will try.

@certified-code
I know nothing about looks, never used them, perhaps just used them to match some fish :rofl:.

CCG can you make an example of how, bad people would do bad things, if a hook is not used.
And what about —> backend.
So if the post-opener would send First data to backend, and do all needed processes on backend.

Which step/element/action cause exactly the leck of security. Just trying to understand.

What about backend-coding.

For example, Miss Grigiene sends the selected dropdown-ondex to the backend.
On backend, she do the if-else-queries and sends emails, from back-end. All process would be hidden and anybody would be able to see what happens behind the scenes.