Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/01/2004, 14:37
Avatar de jUaN_
jUaN_
 
Fecha de Ingreso: septiembre-2002
Ubicación: Buenos Aires - Argentina
Mensajes: 220
Antigüedad: 22 años, 8 meses
Puntos: 0
encontre esta respuesta en en foro, me pueden decir si funciona bien, porque todabia no me habilitaron el servidor y estoy ancioso por empezar,

---------------------------------------------

1.- El Formulario en donde preguntas el nombre y el mail...
Formulario.htm

<html>
<head>
<title>Hola</title>
</head>
<body>
<form action="formulario_mail_asp.asp" method="POST">
Nombre: <input type="Text" name="nombre" size="12" maxlength="200">
<br>
Email: <input type="Text" name="email" size="12" maxlength="200">
<br>
<input type="submit" value="Enviar">
</form>
</body>
</html>



2.- la pagina que recibe...
Formulario_mail_asp.asp

<html>
<head>
</head>
<body>
<%
nombre = request.form("nombre")
email = request.form("email")
cuerpo = "Formulario recibido" & VBNEWLINE & VBNEWLINE
cuerpo = cuerpo & "Nombre: " & nombre & VBNEWLINE
cuerpo = cuerpo & "Email: " & email

set mail = server.createObject("Persits.MailSender")
mail.host = "mail.tucarpintero.com"

Mail.From = "[email protected]"
Mail.FromName = nombre
Mail.AddAddress email
mail.body = cuerpo

On Error Resume Next
mail.send

if Error <> 0 then
response.write "Error, no se ha podido completar la operación"
else
response.write "Gracias por rellenar el formulario. Se ha enviado correctamente."
End If

%>

</body>

</html>

--------------------------------------

Gracias por todo!!
__________________
<% Viru %>