Este ejemplo es muy sencillo pero puede servirte:
<script languaje="javascript">
function mensaje(form) {
nombre = form.nombre.value;
apellido = form.apellido.value;
mailto = "
[email protected]";
asunto = "asunto del mensaje";
body = "Este es el cuerpo del mensaje: Nombre: " + nombre +" | Apellido: " + apellido;
location.href('mailto:'+mailto+'?subject='+asunto+ '&body='+body);
}
</script>
<form name=formulario enctype="text/plain">
nombre: <input type=text name=nombre><br>
apellido: <input type=text name=apellido>
<input type="button" onClick="mensaje(this.form)" value=Enviar>
</form>