<!DOCTYPE html>
<html lang="en-US">
<head><title>Simple Subscription Form</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>
<h2>Simple Subscription Form</h2>
<form>
<label>Email Address:</label>
<input type="email" id="uEmail">
<button type="button">Submit</button>
</form>
<script>
$(document).ready(function(){
$("button").click(function(){
$.post("/test-mail",{
email: $("#uEmail").val(),
},function(res){
alert(res);
});
});
});
</script>
</body>
</html>