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

Envio de e-mails en ASP

Estas en el tema de Envio de e-mails en ASP en el foro de ASP Clásico en Foros del Web. Hola, necesito mandar e-mails desde una pagina ASP, y kisiera saber ke necvesito... No se si necesito algun componente o simplemente llamando a la funcion ...
  #1 (permalink)  
Antiguo 10/07/2002, 05:48
 
Fecha de Ingreso: junio-2002
Mensajes: 58
Antigüedad: 22 años
Puntos: 0
Envio de e-mails en ASP

Hola, necesito mandar e-mails desde una pagina ASP, y kisiera saber ke necvesito...
No se si necesito algun componente o simplemente llamando a la funcion sendmail ya basta...
estoy un poco pez en cuanto a este tema, asi ke si alguien me echa un cable estaria muy agradecido...y si ademas me poneis algun ejemplo con el codigo....buff!!
Bueno muchas gracias por adelantado, un saludo. :P

<center><font face="verdana" color=#003366 size="1">One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.[/CODE]</center>
  #2 (permalink)  
Antiguo 10/07/2002, 06:31
 
Fecha de Ingreso: junio-2002
Mensajes: 58
Antigüedad: 22 años
Puntos: 0
Re: Envio de e-mails en ASP

Estoy usando esto, simplemente llamo a una pagina asp con este codigo, pero me da error..a ver si alguien sabe ke puede usar, estoy usando el cdo para windows 2000:
Código:
  
&lt;%
Dim iMsg
Set iMsg = CreateObject(&quot;CDO.Message&quot;)
Dim iConf 
Set iConf = CreateObject(&quot;CDO.Configuration&quot;)

Dim Flds
Set Flds = iConf.Fields

With Flds
  ' assume constants are defined within script file
  .Item(cdoSendUsingMethod)       = 2 ' cdoSendUsingPort
  .Item(cdoSMTPServerName)        = &quot;intsvr&quot;
  .Item(cdoSMTPConnectionTimeout) = 10 ' quick timeout
  .Item(cdoSMTPAuthenticate)      = cdoBasic
  .Item(cdoSendUserName)          = &quot;&quot;
  .Item(cdoSendPassword)          = &quot;&quot;
  .Item(cdoURLProxyServer)        = &quot;server:80&quot;
  .Item(cdoURLProxyBypass)        = &quot;&lt;local&gt;&quot;
  .Item(cdoURLGetLatestVersion)   = True
  .Update
End With

With iMsg
  Set .Configuration = iConf
      .To       = &quot;&quot;&quot;User A&quot;&quot; &lt;[email protected]&gt;&quot;
      .From     = &quot;&quot;&quot;User B&quot;&quot; &lt;[email protected]&gt;&quot;
      .Subject  = &quot;Hows it going? I've attached my web page&quot;
      .CreateMHTMLBody &quot;http://www.terra.es&quot;
      .Send
End With
%&gt;
Muchas graciassssssss

<center><font face="verdana" color=#003366 size="1">One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.[/CODE]</center>
  #3 (permalink)  
Antiguo 10/07/2002, 11:05
 
Fecha de Ingreso: junio-2002
Mensajes: 58
Antigüedad: 22 años
Puntos: 0
Re: Envio de e-mails en ASP

hola soy yo de nuevo, he usado el cdonts para enviar los mails, y pongo esto:
Código:
  
objmail.mailFormat = 0
objmail.bodyFormat = 0
objMail.From = &quot;[email protected]&quot;
objMail.To = &quot;[email protected]&quot;
objMail.Subject = &quot;Cabecera&quot;
objMail.body = &quot;Mi mensaje&quot;
objMail.Send
el caso es que para enviar texto poniendo tags de html me lo interpreta como html, pero me gustaria saber como enviar el correo que fuese una pagina html en si, y si es posible ke esta pagina fuera una asp...no se si me he explicado... espero ke me entendais y me podais ayudar..
un saludete y gracias

<center><font face="verdana" color=#003366 size="1">One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.[/CODE]</center>
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 01:50.