Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/02/2002, 22:11
galindox
 
Fecha de Ingreso: enero-2002
Mensajes: 141
Antigüedad: 23 años, 2 meses
Puntos: 0
Re: como envio formulario sin usar cdonts

bien raro que no lo permita, si no puedes instalar ningun componente de mail,
debes usar javascript en el lado del
cliente para hacerlo via cliente de correo
del visitante de la pagina,
te mando uno que use hace tiempo
====
part 1
=====
<script Language="JavaScript">
<!-- hide script from non compliant broswers
function mailIt(form) {
var data = document.dataForm
var userInfo = ""
// comment out the next line if you want to hardcode the recipient
// then add '[email protected]' to the 'mailform' action attribute
// (i.e. -- ACTION="mailto:[email protected]")
form.action += data.recipient.value
// comment out the next line if you want to hardcode the subject
// then add '?subject=example' to the 'mailform' action attribute.
// You must hardcode an address before you can hardcode a subject.
// (i.e. -- ACTION="mailto:[email protected]?subject=example&q uot;)
form.action += "?subject=" + data.subject.value
userInfo += "Page Title: " + document.title + "\n"
userInfo += "Mailed From: " + document.location + "\n\n"
form.mailBody.value = userInfo + "\n"+data.name.value +"\n"
+ data.country.value + "\n" + data.email.value
+ "\n"+data.comments.value
return true
}
// end hiding from non compliant browsers-->
<!-- http://www.a1javascripts.com -->
</script>
========
Part 2
=========
<!-- --><table><form NAME="dataForm">
<!-- DELETE THIS TABLE ROW IF YOU'RE HARDCODING A RECIPIENT -->
<tr>
<th ALIGN="right">Recipient:
<td><input NAME="recipient" SIZE="40" VALUE="[email protected]">
</tr>
<!-- DELETE THIS TABLE ROW IF YOU'RE HARDCODING A SUBJECT --><tr>
<th ALIGN="right">Subject:
<td><input NAME="subject" SIZE="40" VALUE>
</tr></form></table>
<form NAME="mailForm" ACTION="mailto:" METHOD="post" ENCTYPE="text/plain" onSubmit="return mailIt(this)">
<input TYPE="hidden" NAME="mailBody" VALUE>
<tr><td COLSPAN="2" ALIGN="right">
<input TYPE="submit" VALUE="Send My Email Now"></tr>
</form>
<!-- -->