SOLVED: Send e-mail with form data after submit

388/5000

I need to send an email with the data collected on the form to the address " abpm@abpm-brasil.com.br ".
I’m using the examples on the page:
https://support.wix.com/en/article/wix-code-tutorial-sending-an-email-on-form-submission
But since I am not fluent in English, I am not able to know where to inform the email provider or the password.
Please, if anyone can help me …

If sendGrid is complicated for you then you can use Wix Automations

Are e-mails sent with Wix Automations free (meaning part of the regular Wix cost)?

Hi Edson,

Check out this video link: How To Send An Email Notification After Form Submission in Wix - Wix Code Tutorial

This should be able to walk you through it. If you are still finding it difficult, then do what Shan suggested and use Wix Automations instead.

Check what plan you are on - see Ascend Plans here - as it should all be displayed on your Wix Dashboard already.

Once logged into Wix, from your Dashboard select Marketing Tools and then Email Marketing.

You should then see a Balance section which tells you which plan you are on and what you have used etc.

Like this:

Thanks, but wix Automations does not meet my need.
I would like the data entered by the client in the form to be sent to my email in addition to being sent to the database.

Watch the youtube video link , the same one as I posted to you before and just copy and paste the code as shown here, Email Notification Code , into your email.jsw and sendGrid.js backend files and the page code into your page itself.

That is basically everything done for you, all the needed code is setup for you, all you need to change now is just a few items like your email sender and recipient addresses, your SendGrid api key and your own dataset name.

I would like to send an HTML email to the customer depending on the product the client requested the information from the Contact Form. EG, Product A ; send a template A email, Product B ; send template B
I tried the code and I follow the steps however this is only to notify myself that an enquiry was submitted.
Is it possible to send emails based on Customer selections?
I tried Wix Automations but I cannot see any option in order to do what I want

Any Ideas?

Thanks

It is possible to do this through Wix Automations for free and to inform both you and/or your customer. However, you need to ensure that somewhere in the form the user enters their email. Once you have that set, then you can connect other fields of that form/database through the variables function.

Hi Brett,
Thanks for your tip. I could use variables from the Form to pull info from the customer’s input and use it in an email. However, I am also looking to send specific Email template based on selection.
For example: if customer A selects PRODUCT Shoes then an email is sent to the customer, this email will contain images, text and links related to Shoes.
If customer B selects PRODUCT T-shits then an email is sent to the customer, this email will contain images, text and links related to T-shirts.

The thing with Automation is that I cannot filter/specify to send emails based on criteria from the Custom Form. Maybe I am missing something…
Appreciate any help
Thanks again

@parachutesbcn Make additional fields in the database with the information you want for the specific product emails and then connect them. For example: make fields for product name, price, description, image. Have these field be blank and not connected to anything in the field. Then, create a dataset hook if x product is selected then fill these fields with y.

@brettfranklin2 Thanks again for this info. I do understand how to achieve this. However, now I need a developer as I don’t know how to code Javascript haha.

Regards