Email Trigger through form submit

Hi everyone,

I am trying to trigger an email when a new user submits a form with his email address. I followed the tutorial but still it is not sending any email. This is the form setup. It is connected to a database, which is working well.

This is how my code looks, where email should get triggered with onclick button on subscribe button.

I even checked the console log in browser, I am getting the error.

Can someone inform me what is wrong with my code?
Thanks,

1 Like

I haven´t tried it myself yet, but I do remember other people complaining about the 500 error. Search the forum, maybe there is a solution.

I tried but, there can’t seem to a solution which is working. Can anyone from wix team check the problem?

I notice that this issue when testing my site, if you already have a contacts with the same details (email or name), creating the new identical contact will cause this error .
Delete the contact from the contact list and try again.