I don't think so.
you could just do:
var doneAction = "window.open('sendName.php');";
and then write a simple mail script in PHP. Just checking, but are you sure you even have PHP? I've had people before who's host doesn't suport it asking for code, which they then claim doesn't work.