Sending an email on form submission issue

Hello,
I’ve been having an issue with code explained in this tutorial:

The tutorial is about sending an email to myself and subscriber when they fill a form on my page. However, after they submit the form, the page opens default mailing app or default web browser. The page I’m talking about is this one:

and the code is displayed on this picture:


I know it’s dumb but I’m just a beginner. I put wrong field as the recipient on purpose, because I didn’t want page to send a confirmation email to the other person, and the code is supposed to do exactly that.
Also, I have this other page which is the exact copy of this one with exactly the same code and it works just fine:
https://nnishavic.wixsite.com/mysite-copy/course-registration

I would appreciate any suggestion.

Thanks,
Nemanja

Hello Namanja,

Please make sure the button that runs the code is not linked to anything:
Wix Editor: Adding and Setting Up an Icon Button | Help Center | Wix.com (set linking to none)

You want to remove any linking as it will mess with the custom code you write.

If this doesn’t work can you send me your sites url so that I may inspect it? Only Wix Employees may enter your site.

PS. We all start off as beginners :slight_smile: our mistakes help us learn!

Best,
Majd

Wow, thank you so much! It did the trick!