I have following javascript for my form at the moment :
$('#myform').on('submit', function(e){
e.preventDefault();
$.get($(this).attr('action') + $(this).serialize());
alert("Thank You! \nTop Up for: <?php echo "$username" ?> Purchased Successfully");
location.reload();
});
I basically now want to make it so that it sends an email everytime the form is submitted to an fixed email adress. Basically everytime this script runs , it sshould send an email to stephan@test.com
Any ideas? I have no clue how to