Form that sends me email
Can anyone help me? I want to make a form that sends me an email without PHP (I'm not sure if repl supports it?). I've tried the internet, but everything includes PHP. Thank you, lolguineapig
Voters
RowanFromBJC
Sample form:
<!DOCTYPE html> <html> <body> <input type="text" id="email" placeholder="Email"/> <button onclick="send()">Send</button> <script> function send() { window.open(`mailto:${document.getElementById('email').value}`, '_blank'); } </script> </body> </html>
For more details on this go to @RhinoRunner 's answer
Use @SixBeeps 's answer if you're using Node.JS
lolguineapig
btw, I'd like an answer by Jan 6th
tussiez
@lolguineapig See SixBeeps' answer
you can use the HTML
<mailto>
https://www.rapidtables.com/web/html/mailto.html