Tema: Cdonts
Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/02/2004, 20:03
Berletzis
 
Fecha de Ingreso: noviembre-2003
Mensajes: 343
Antigüedad: 21 años, 6 meses
Puntos: 0
<%
'declaramos las variables
Dim ObjMail,oConn

'obtenemos los valores del formulario de acuerdo al nombre de cada componente

Nombre= Request.Form("Nombre")
Ciudad= Request.Form("Ciudad")
Ocupacion=Request.Form("Ocupacion")
EMail=Request.Form("EMAil")
Tema=Request.Form("Tema")
Mensaje=Request.Form("Mensaje")

Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open ("PROVIDER=Microsoft.Jet.OLEDB.4.0; DATA SOURCE=" + Server.MapPath ("Home.mdb"))
oConn.execute "INSERT INTO AsistenciaTec(Nombre,Ciudad,Ocupacion,EMail,Tema,M ensaje) VALUES('"&Nombre&"','"&Ciudad&"','"&Ocupacion&"',' "&EMail&"','"&Tema&"','"&Mensaje&"')"
oConn.Close
Set oConn = nothing



Set ObjMail = Server.CreateObject("CDONTS.NewMail")
ObjMail.To = "[email protected],[email protected] "
ObjMail.From = "[email protected]"
ObjMail.Subject = "AsistenciaTecnica"
objMail.Body = "Nombre: " & Nombre & vbcrlf&_
"Ciudad: " & Ciudad & vbcrlf&_
"Ocupacion: " & Ocupacion & vbcrlf&_
"EMail: " & EMail & vbcrlf&_
"Tema: " & Tema & vbcrlf&_
"Mensaje: " & Mensaje



ObjMail.Send
Set ObjMail = Nothing

Response.Redirect "GRACIAS.ASP"
%>
__________________


La tecnología es un hecho objetivo, y el resultado está sujeto a la voluntad humana.