salve a tutti,
ho implementato nel mio sito un modulo per inviare una email tramite una form ma con il mio codice ottengo sempre questo errore
codice:
CDO.Message.1 error '80040213'
Il trasporto non è riuscito a connettersi al server.
/edilsv/gestioneform.asp, riga 111
devo precisare che sto lavorando in locale ed ho win7. Il codice è:
codice:
'invio l'email tramite form
Const cdoSendUsingMethod = "http://schemas.microsoft.com/cdo/configuration/sendusing"
Const cdoSendUsingPort = 2
Const cdoSMTPServer = "http://schemas.microsoft.com/cdo/configuration/smtpserver"
Const cdoImportance = "urn:schemas:httpmail:importance"
Set objMail = CreateObject("CDO.Message")
Set objConf = CreateObject("CDO.Configuration")
with objConf.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "localhost"
.Update
end with
with objMail
Set .Configuration = objConf
.From = email
.To = "xxx@hotmail.it"
.Subject = "prova"
.TextBody = "prova"
.Send()
end with
Set objMail = Nothing
Set objConf = Nothing
Qualcuno sa come posso risolvere il problema?