paulkinchen 0 Newbie Poster

Hi,
A old friend of mine sent me a script for a contact form. I put it in my global.js file and trying to get my form to email the information to me. The form is jquery and ajax made and it works correctly by showing the form and when they click send the thanks script comes up. I am missing the file that directs the email to my email. Below is the script he sent me. Trying to get help on developing a file to direct the emails to my email.

$("#send").click( function () { 
if(checkcontactform() === true) { 
var xdata = 'contact=true'; 
xdata += '&name=' + $("input[name='cname']").val(); 
xdata += '&email=' + $("input[name='cemail']").val(); 
xdata += '&phone=' + $("input[name='cphone']").val(); 
xdata += '&company=' + $("input[name='ccompany']").val(); 
xdata += '&url=' + $("input[name='curl']").val(); 
xdata += '&media=' + $("select[name='media']").val(); 
xdata += '&timeline=' + $("select[name='timeline']").val(); 
xdata += '&budget=' + $("select[name='budget']").val(); 
xdata += '&message=' + $("textarea[name='message']").val(); 
$("#contactTable").fadeOut(400); 
$.ajax({ 
type: "POST", 
url: "/", 
data: xdata, 
success: function(msg){ 
$("#thanks").fadeIn(); 
document.forms.contactForm.reset(); 
} 
}); 
} 
}); 
});

Any help would work.