Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/01/2008, 05:17
chelusan
 
Fecha de Ingreso: abril-2007
Mensajes: 75
Antigüedad: 18 años
Puntos: 0
novato en asp

Hola a todos, estoy probando un archivo en asp para mandar un mail y en local me funciona pero en el servidor no. no se si tengo algun fallo en programacion:

Código:
<html>
<head>
<title></title>
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW"> 

</head>

<%
Set objEMail = Server.CreateObject("CDO.Message")
Set Config = Server.createObject ("CDO.Configuration")
With Config
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "127.0.0.1"
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
.Fields.update
End With 
objEMail.To =  "[email protected]"
objEMail.From = "[email protected]"
objEMail.Subject = "hola"
objEMail.HTMLBody ="holassssssss"
objEMail.Send
Set objEMail = Nothing

Response.Write("Message Sent")


 
 %>

<body>

</body>
</html>
seguro que luego es una tonteria pero no se, soy primerizo