Ver Mensaje Individual
  #8 (permalink)  
Antiguo 19/05/2005, 13:52
Huev0nMast3r
Invitado
 
Mensajes: n/a
Puntos:
el error esta en "objMessage.Send", no se que es lo que esta mal...

les muestro el codigo

Código:
<%
Dim strTo, strSubject, strBody
Dim objCDOMail

strTo = "[email protected]"
strSubject = "Contacto Compra Vía WEB"

strBody = "Nombre: " & Request.Form("nombre")
strBody = strBody & vbCrLf
strBody = strBody & "Dirección: " & Request.Form("direccion")
strBody = strBody & vbCrLf
strBody = strBody & "Teléfono: " & Request.Form("tel")
strBody = strBody & vbCrLf
strBody = strBody & "e-mail: " & Request.Form("mail")
strBody = strBody & vbCrLf
strBody = strBody & "Código del Producto: " & Request.Form("codigo")
strBody = strBody & vbCrLf & vbCrLf
strBody = strBody & "Otras Indicaciones: " & Request.Form("texto")

Set objMessage = CreateObject("CDO.Message") 
objMessage.Subject = strSubject 
objMessage.Sender = request.form("email")
objMessage.To = "[email protected]"
objMessage.HTMLBody =strBody
objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
'también puedes borrar la línea de SMTP si pones sendusing=1
objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
 objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
 objMessage.Configuration.Fields.Update

objMessage.Send
set objmessage=nothing
%>

Última edición por Huev0nMast3r; 19/05/2005 a las 14:04