How to send mail using JS and HTML?
I want to create a function which will sent e-mail, when I click "Send mail" button.
like that:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<button onclick="MyFunc()">Send mail</button>
<script>
function MyFunc() {
var x=confirm("Are you sure that you want to sent mail?")
if(x==true)
{
***What to write here***
}
}
</script>
</body>
</html>