Este funciona por el asunto, pero si en vez de el asunto pones el nombre del destinatario, es lo mismo, no?
Inserta este codigo entre las etiquetas <head>:
Código:
<script language="JavaScript">
<!-- Begin
function getCookie(name){
var cname = name + "=";
var dc = document.cookie;
if (dc.length > 0) {
begin = dc.indexOf(cname);
if (begin != -1) {
begin += cname.length;
end = dc.indexOf(";", begin);
if (end == -1) end = dc.length;
return unescape(dc.substring(begin, end));
}
}
return null;
}
function setCookie(name, value, expires) {
document.cookie = name + "=" + escape(value) +
((expires != null) ? "; expires=" + expires.toGMTString() : "")
+ "; path=/";
}
function setName() {
var expdate = new Date ();
expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000 * 365));
var prompt=i = document.Mail.name.value;
setCookie("name", i, expdate);
}
function getName() {
if(getCookie("name") != null) {
document.Mail.Name.value = getCookie("emailname");
}
}
function getInfo() {
var now= new Date();
document.Mail.Info.value = "Navegador: " + navigator.userAgent;
document.Mail.Info.value += "Fecha:" + now;
}
function checkMultiple() {
if (getCookie("emailsent") == 'true') return true;
else return false;
}
function process() {
setCookie("emailsent", "true");
with (document.Mail) {
if (Subject.selectedIndex == 1) action = "mailto:tuemail@tudominio.com?subject=Comentario";
else if (Subject.selectedIndex == 2) action = "mailto:tuemail@tudominio.com?subject=Pregunta";
else if (Subject.selectedIndex == 3) action = "mailto:tuemail@tudominio.com?subject=Sugerencia";
else if (Subject.selectedIndex == 4) action = "mailto:tuemail@tudominio.com?subject=Enlace roto";
else action = "mailto:tuemail@tudominio.com?subject=Otros";
}
}
function formCheck() {
var passed = false;
with (document.Mail) {
if (Subject.selectedIndex == 0) {
alert("Por favor selecciona asunto.");
Subject.focus();
}
else if (Name.value == "") {
alert("Por favor incluye tu nombre.");
Name.focus();
}
else if (checkMultiple == "") {
if (confirm("Acabas de mandar un email utilizando este formulario, ¿estás seguro de que quieres mandar otro?")) {
process();
passed = true;
}
}
else {
process();
passed = true;
}
}
return passed;
}
// End -->
</script>
Y este otro entre las <body>:
Código:
<table border="0" cellspacing="0" cellpadding="4" style="border-collapse: collapse" bordercolor="#111111" width="500">
<tr>
<font topmargin="0" leftmargin="0">
<td width="734" align="center">
<center>
<dd>Para enviar correo directamente pulsa
<a href="mailto:tuemail@tudominio.com?subject=Texto del asunto" style="color: #000000; text-decoration: none">
<font color="#FF0000">aquí</font></a>. </font>
<font size="1" topmargin="0" leftmargin="0">
<font size="3">
<form encType="text/plain" method="post" name="Mail" onsubmit="return formCheck();" action="mailto:tuemail@tudominio.com?subject=TJS - Form">
<table border="0" cellPadding="5" cellSpacing="0">
<tr>
<td>Nombre:
</font>
</font>
<font face="Verdana" size="3">
<input name="Name" onchange="setName()" size="20"></font><font size="3"> </td>
<td align="right">Asunto:
</font>
</font>
<font face="Verdana" size="3"> <select name="Subject">
<option selected SELECT>Selecciona asunto...</option>
<option>1. Comentario</option>
<option>2. Pregunta</option>
<option>3. Sugerencia</option>
<option>4. Enlaces rotos</option>
<option>5. Ninguno de los anteriores</option>
</select></font><font size="3"> </td>
</tr>
</font>
<tr>
<td colSpan="2">Notas:
<font face="Times" size="2">
</font><font face="Times" size="3">
<font face="Verdana">
<textarea cols="65" name="Comentario" rows="6">
</textarea></font></font></font>
</td>
</tr>
</table>
<font face="Verdana" size="3">
<center>
<table>
<tr>
<td align="middle"><input type="submit" value="Enviar"></font><font size="3"></font>
</td>
</tr>
</table>
</center>
</font>
<font face="Times" size="3">
<input name="Info" size="0" type="hidden">
<input name="Javascript Picksubject Form" size="0" type="hidden">
</form>
<script language="JavaScript">
<!-- Begin
getInfo();
getName();
// End -->
</script>
</font>
</font>
</font></dd>
</center></font>
</font>
</td>
</tr>
</table>
</font>
Marcadores