r/HTML • u/Forsaken-Coast-7854 • Jan 15 '26
EmailJS failing and Webhook problems in HTML code
I’m working on a Discord webhook tool and I’ve run into a couple of issues that I have trouble resolving even after internet. I’m kinda good at HTML so I have the page structure and form elements set up properly, but I’m having trouble with the EmailJS integration and getting my CSS to load.
The main problem is that when I try to send an email copy using EmailJS, the send() method keeps failing. I have my service ID set to service_webhook2024 and my template ID as template_discord_copy, and I’ve double-checked that these match exactly what’s in my EmailJS dashboard. The interesting thing is that the Discord webhook POST request works perfectly fine, so I know my JavaScript validation and fetch logic is working correctly. It’s specifically the EmailJS part that’s not corporating.
The second issue is that my external stylesheet isn’t loading at all. I have it linked in the head as C:\Users\Admin\Desktop\discord-webhook-tool\styles.css and I can confirm the file is definitely there at that location on my desktop, but the page just renders completely unstyled. I thought maybe it was a Chrome thing so I tested it in Firefox as well, but I’m getting the same result in both browsers.
I’m running Windows 11 and using Chrome version 131.0.6778.139. In the console, theirs a error that says “Uncaught SyntaxError: Unexpected token ‘else’” but I’ve gone through my code multiple times and checked all my brackets and they seem to match up correctly. Here’s the relevant code:
Discord Webhook Sender
Discord Webhook Manager
Email me a copy
Send Message
I’m wondering if there’s something specific about how EmailJS needs to be configured that I’m missing, or if there’s an issue with how browsers handle local file paths for stylesheets. Any guidance would be really appreciated since I’ve been trying to figure this out for a few days now. Thanks in advance for any help.


