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

e-mail Persits.MailSender

Estas en el tema de e-mail Persits.MailSender en el foro de ASP Clásico en Foros del Web. Hola vereis, he echo un formulario con flash para enviar unos email y todo me funciona bien...pero al hacer un formulario normal con html el ...
  #1 (permalink)  
Antiguo 21/11/2005, 07:35
 
Fecha de Ingreso: octubre-2004
Mensajes: 230
Antigüedad: 20 años, 6 meses
Puntos: 0
e-mail Persits.MailSender

Hola vereis, he echo un formulario con flash para enviar unos email y todo me funciona bien...pero al hacer un formulario normal con html el cual llama a una pagina asp para procesar el correo, pues si que me llega el correo pero en blanco..????

este es el codigo de la pagina asp
Código:
<%
		dim Servidor
		dim Incorrecto
		dim Correcto
		dim Objeto
		dim strHTML
		dim Destino
		dim Asunto
		
		strHTML = "<font size='2' face='Verdana'>"
		strHTML = strHTML & "Esta consulta ha sido enviada desde la sección <strong>Consultas<strong><p>"
		strHTML = strHTML & "Nombre: <b>" & Request.QueryString("nombre") & "</b><br>"
		strHTML = strHTML & "Apellidos: <b>" & Request.QueryString("apellidos") & "</b><br>"
		strHTML = strHTML & "Correo Electronico: <b>" & Request.QueryString("correo") & "</b><br>"
		strHTML = strHTML & "Direcci&oacute;n: <b>" & Request.QueryString("direccion") & "</b><br>"
		strHTML = strHTML & "Localidad: <b>" & Request.QueryString("localidad") & "</b><br>"
		strHTML = strHTML & "Provincia: <b>" & Request.QueryString("provincia") & "</b><br>"
		strHTML = strHTML & "Codigo Postal: <b>" & Request.QueryString("cp") & "</b><br>"
		strHTML = strHTML & "Consulta: <b>" & Request.QueryString("consulta") & "</b><br></font>"
		
		Servidor = "correo.misitio.es"
		Destino = "[email protected]"
		Asunto = "Mi texto de asunto"

		If Request("envio") <> "" Then
		
			Set Objeto = Server.CreateObject("Persits.MailSender")
			Objeto.Host = Servidor
	
			Objeto.From = Request.QueryString("correo") 
			Objeto.FromName = Request.QueryString("nombre") 
			Objeto.AddAddress Destino
			
			Objeto.Subject = Asunto
			Objeto.IsHTML = True
			Objeto.Body = "<HTML><HEAD><TITLE></TITLE></HEAD><BODY><CENTER><TABLE><TR><TD ALIGN='left'>" & strHTML & "</TD></TR><TABLE></CENTER></BODY></HTML>"
	
			Incorrecto = ""
			Correcto = False
			On Error Resume Next 
			Objeto.Send	
		End If
%>
y este es el formulario
Código HTML:
<form name="form1" method="post" action="../form1.asp">
	      <table border="0" cellpadding="0" cellspacing="0" style="width:520px;">
		  <tr>
		  <td align="center" colspan="2"  style="font-family:Arial, Helvetica, sans-serif;">
		  Puede solicitar una exposici&oacute;n utilizando el presente formulario.En el plazo de cinco d&iacute;as recibir&aacute; la confirmaci&oacute;n de la reserva solicitada. </td>
		  </tr>
		  <tr><td>&nbsp;</td></tr>
	        <tr>
	          <td  style="padding-left:15px;text-align:right;font-family:Arial, Helvetica, sans-serif;"><strong>Colegio/Entidad solicitante :&nbsp;</strong></td>
	          <td ><input name="entidad" type="text" id="entidad" style="width:200px;"></td>
	        </tr>
	        <tr>
	          <td style="padding-left:15px; text-align:right;font-family:Arial, Helvetica, sans-serif;"><strong>Direcci&oacute;n:&nbsp;</strong></td>
	          <td><input name="direccion" type="text" id="direccion" style="width:200px;"></td>
            </tr>
	        <tr>
	          <td style="padding-left:15px; text-align:right;font-family:Arial, Helvetica, sans-serif;"><strong>Localidad:&nbsp;</strong></td>
	          <td><input name="localidad" type="text" id="localidad" style="width:200px;"></td>
            </tr>
			<tr>
	          <td style="padding-left:15px; text-align:right;font-family:Arial, Helvetica, sans-serif;"><strong>Profesor/Persona de contacto:&nbsp;</strong></td>
	          <td><input name="profesor" type="text" id="profesor" style="width:200px;"></td>
            </tr>
			<tr>
	          <td style="padding-left:15px; text-align:right;font-family:Arial, Helvetica, sans-serif;"><strong>Fax:&nbsp;</strong></td>
	          <td><input name="fax" type="text" id="fax" style="width:200px;"></td>
            </tr>
			<tr>
	          <td style="padding-left:15px; text-align:right;font-family:Arial, Helvetica, sans-serif;"><strong>C&oacute;digo postal :&nbsp;</strong></td>
	          <td><input name="cp" type="text" id="cp" style="width:200px;"></td>
            </tr>
			<tr>
	          <td style="padding-left:15px; text-align:right;font-family:Arial, Helvetica, sans-serif;"><strong>Provincia:&nbsp;</strong></td>
	          <td><input name="provincia" type="text" id="provincia" style="width:200px;"></td>
            </tr>
			<tr>
	          <td style="padding-left:15px; text-align:right;font-family:Arial, Helvetica, sans-serif;"><strong>Correo electr&oacute;nico :&nbsp;</strong></td>
	          <td><input name="correo" type="text" id="correo" style="width:200px;"></td>
            </tr>
			<tr>
	          <td style="padding-left:15px; text-align:right;font-family:Arial, Helvetica, sans-serif;"><strong>Fechas de la exposici&oacute;n :&nbsp;</strong></td>
	          <td><input name="fecha" type="text" id="fecha" style="width:200px;"></td>
            </tr>
	        <tr>
	          <td  style="padding-left:15px; text-align:right;font-family:Arial, Helvetica, sans-serif; vertical-align:top; padding-top:3px;"><strong>Observaciones:&nbsp;</strong></td>
	          <td ><textarea name="observ" rows="3" id="observ" style="width:200px;"></textarea></td>
            </tr>
	        <tr>
	          <td style="padding-left:15px; text-align:right; vertical-align:top; padding-top:3px;">&nbsp;</td>
	          <td ><input type="submit" name="Submit" value="Enviar" >&nbsp;&nbsp;&nbsp;&nbsp;
              <input type="reset" name="Submit2" value="Limpiar" ></td>
            </tr>
        </table>
        </form> 
y me llega la cabecera pero no el contenido del formulario.....alguien me puede decir algo
  #2 (permalink)  
Antiguo 21/11/2005, 08:25
Avatar de FiNo  
Fecha de Ingreso: octubre-2004
Ubicación: Costa Rica
Mensajes: 265
Antigüedad: 20 años, 6 meses
Puntos: 1
BUenas, deberias colocar, solamente Request("datos") en vez de Request.QueryString("Datos")


Espero que te sirva.
  #3 (permalink)  
Antiguo 29/11/2005, 05:28
 
Fecha de Ingreso: marzo-2005
Mensajes: 31
Antigüedad: 20 años, 1 mes
Puntos: 1
A ver, no se si te llega solo la cabecera o si quieres decir que no te llegan los parámetros que pasas por el form.

Cuando pasas parámetros por el form y el method es "POST", en la siguiente página los recuperas con Request.Form("parametro").

Reuqest.Querystring("parametro") se usa si el método del form es "get" o para recuperar los parametros que se pasan por el URL.

Espero haberte aclarado algo.
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 00:22.