I am trying to write a function to send an email when the user clicks on “submit”.
Any ideas how to do so?
Lets say I have a
<script>
function mail()
{
var players = document.getElementById('players').value;
var slots = document.getElementById('slots').value;
}
</script>
and I want to generate an mail with those three vars.
Thanks all :)!
“You may need to post the details to a server which would mail or you can use the mailto function to invoke default mail client on the client’s computer like
variable1:
variable2:
“
This answer above will not work for people who do not have a mail client installed on their os. the mailto feature in html will open up the users “outlook” type program to send the mail.