Foros del Web » Programando para Internet » ASP Clásico »

error en componente cdonts

Estas en el tema de error en componente cdonts en el foro de ASP Clásico en Foros del Web. No puedo hacer funcionar el cdonts en mi formulario y no se que estoy haciendo mal : este es el formulario : <!DOCTYPE HTML PUBLIC ...
  #1 (permalink)  
Antiguo 11/11/2005, 20:55
(Desactivado)
 
Fecha de Ingreso: agosto-2002
Mensajes: 1.458
Antigüedad: 21 años, 8 meses
Puntos: 0
Pregunta error en componente cdonts

No puedo hacer funcionar el cdonts en mi formulario y no se que estoy haciendo mal :

este es el formulario :


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="" content="text/html; charset=iso-8859-1">
<meta http-equiv="" content="text/html; charset=iso-8859-1">
</head>

<body>
<div align="center">
<p><font color="#0000FF" face="Arial, Helvetica, sans-serif"><strong><u>Registrarse</u></strong></font></p>
<table width="558" height="332" border="0">
<tr>
<td valign="top" bgcolor="#FFFFFF"><div align="left"><font color="#747474">
</font>
<div align="justify">
<form action="contactoemail.asp" method=POST>
<div align="center">
<table width="460" border="0">
<tr>
<td width="158"><strong><font color="#000000" size="-1" face="Arial, Helvetica, sans-serif">Nombre
:</font></strong></td>
<td width="292" colspan="2"><font color="#747474">
<input type="text" name="nombre">
</font></td>
</tr>
<tr>
<td><strong><font color="#000000" size="-1" face="Arial, Helvetica, sans-serif">Apellido
:</font></strong></td>
<td colspan="2"><font color="#747474">
<input type="text" name="apellido">
</font></td>
</tr>
<tr>
<td><strong><font color="#000000" size="-1" face="Arial, Helvetica, sans-serif">Empresa:</font></strong></td>
<td colspan="2"><font color="#747474">
<input type="text" name="empresa">
</font></td>
</tr>
<tr>
<td height="18"><strong><font color="#000000" size="-1" face="Arial, Helvetica, sans-serif">Cuit
(si corresponde ) </font></strong></td>
<td colspan="2"><font color="#747474">
<input type="text" name="cuit">
</font></td>
</tr>
<tr>
<td><strong><font color="#000000" size="-1" face="Arial, Helvetica, sans-serif">Tel&eacute;fono:</font></strong></td>
<td colspan="2"><font color="#747474">
<input type="text" name="telefono">
</font></td>
</tr>
<tr>
<td><strong><font color="#000000" size="-1" face="Arial, Helvetica, sans-serif">E
Mail:</font></strong></td>
<td colspan="2"><font color="#747474">
<input type="text" name="mail">
</font></td>
</tr>
<tr>
<td><strong><font size="-1" face="Arial, Helvetica, sans-serif">Password:</font></strong></td>
<td colspan="2"><font color="#747474">
<input type="text" name="password">
</font></td>
</tr>
<tr>
<td><strong><font size="-1" face="Arial, Helvetica, sans-serif">Direcci&oacute;n:</font></strong></td>
<td colspan="2"><font color="#747474">
<input type="text" name="direccion">
</font></td>
</tr>
<tr>
<td><strong><font size="-1" face="Arial, Helvetica, sans-serif">C&oacute;digo
Postal:</font></strong></td>
<td colspan="2"><font color="#747474">
<input type="text" name="postal">
</font></td>
</tr>
<tr>
<td><strong><font size="-1" face="Arial, Helvetica, sans-serif">Provincia:</font></strong></td>
<td colspan="2"><font color="#747474">
<input type="text" name="provincia">
</font></td>
</tr>
<tr>
<td><strong><font size="-1" face="Arial, Helvetica, sans-serif">Localidad</font></strong></td>
<td colspan="2"><font color="#747474">
<input type="text" name="localidad">
</font></td>
</tr>
<tr>
<td><strong><font size="-1" face="Arial, Helvetica, sans-serif">Pa&iacute;s
:</font></strong></td>
<td colspan="2"><font color="#747474">
<input type="text" name="pais">
</font></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><font color="#747474">
<input type="submit" name="Enviar" value="Enviar">
</font></td>
<td><font color="#747474">
<input type="submit" name="Restablecer" value="Restablecer">
</font></td>
</tr>
</table>
</div>
<font color="#747474"><br>
</font>
</form>

y este es el codigo asp que me tendría que enviar el formulario

<%@Language=VBSCRIPT%>
<%
Set objMail = Server.CreateObject("CDONTS.NewMail")

objMail.From = Request("EMAIL")
objMail.To = "[email protected]"
objMail.Subject = "FORMULARIO - REGISTRO DE USUARIO"
objMail.MailFormat = 0

objMail.Body = "FORMULARIO" & chr(13) & chr(10) & chr(13) & chr(10) &_
"Nombre : " & Request("nombre") & chr(13) & chr(10) &_
"Apellido : " & Request("apellido") & chr(13) & chr(10) &_
"empresa : " & Request("empresa") & chr(13) & chr(10) &_
"cuit : " & Request("cuit") & chr(13) & chr(10) &_
"telefono : " & Request("telefono") & chr(13) & chr(10) &_
"E-mail : " & Request("mail") & chr(13) & chr(10) &_
"Password : " & Request("password") & chr(13) & chr(10) & chr(13) & chr(10) &_
"Direccion : " & Request("direccion") & chr(13) & chr(10) &_
"Codigo postal: " & Request("postal") & chr(13) & chr(10) &_
"Provincia : " & Request("provincia") & chr(13) & chr(10) &_
"Localidad : " & Request("localidad") & chr(13) & chr(10) &_
"Pais : " & Request("pais") & chr(13) & chr(10) &_
objMail.Send

Set objMail = nothing

Response.Redirect "Contactogracias.htm"
%>

y me sale este error :

error '80040108' en la linea 10

esta es la linea 10

objMail.Body = "FORMULARIO" & chr(13) & chr(10) & chr(13) & chr(10) &_

me estoy volviendo loco alguien por favor que pueda revisar este codigo por que no se que hago mal

gracias
  #2 (permalink)  
Antiguo 13/11/2005, 16:57
 
Fecha de Ingreso: noviembre-2005
Mensajes: 658
Antigüedad: 18 años, 5 meses
Puntos: 3
Revisa este link

http://www.aspfaq.com/show.asp?id=2386
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:41.