Skip to content
← Back to Community
Form that sends me email
Profile icon
lolguineapig

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
Profile icon
SandunWira
Profile icon
lolguineapig
Comments
hotnewtop
Profile icon
RhinoRunner

you can use the HTML <mailto>
https://www.rapidtables.com/web/html/mailto.html

Profile icon
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

Profile icon
SixBeeps
Profile icon
lolguineapig

btw, I'd like an answer by Jan 6th

Profile icon
tussiez

@lolguineapig See SixBeeps' answer