How to send email by .net, with ajax-jquery requests ?
I am new to .net so dont really know how to do it, but i dont think it is a long code, can anyone help me ?
HTML
<form action="" method="get" id="mapKontaktForm" onsubmit="return false;">
<input type="text" value="Indtask dit navn" />
<input type="text" value="Indtask dit tlf. nr." />
<input type="text" value="Indtask dit post nr." />
<input type="submit" value="Send" id="mapFormSubmit" onclick="return false;" />
</form>
jquery-ajax
$('#mapFormSubmit').click(
function(){
var name = $('#mapKontaktForm input:nth-child(1)').val();
var phone = $('#mapKontaktForm input:nth-child(2)').val();
var post = $('#mapKontaktForm input:nth-child(3)').val();
var dataString = 'name='+ name + '&phone=' + phone + '&post=' + post;
$.ajax({
type: "GET",
url: "/files/billeder/../Templates/Designs/Ideal2011/js/contactForm.aspx",
data: dataString,
success: function() {
$('.acceptBox').fadeIn(1000);
},
error: function(){
$('.errorBox').fadeIn(1000);
}
});
return false;
}
)
What should be in aspx or ashx file to send these three values by email ?