Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/03/2007, 11:45
matias_up
 
Fecha de Ingreso: mayo-2006
Mensajes: 12
Antigüedad: 19 años, 1 mes
Puntos: 0
Re: Como obtener IP y enviar por correo?

Const cdoOutlookExvbsss = 2
Const cdoIIS = 1

Dim Message

aTo="[email protected]"
Subject="asunto"
TextBody=ip
aFrom="[email protected]"

'Message=CreateObject("CDO.Message")

'Create CDO message object
Set Message = CreateObject("CDO.Message")
With Message
'Load IIS configuration
.Configuration.Load cdoIIS

'Set email adress, subject And body
.To = aTo
.Subject = Subject
.TextBody = TextBody

'Set sender address If specified.
If Len(aFrom) > 0 Then .From = aFrom

'Send the message
.Send
End With
if err.number=0 then
Response.Write "Enviado"
else
Response.Write "Falló"
end if