Hello,
I have read many posts suggesting how to solve the infamous email problem.
I get this error:
CDO.Message.1 error '80040213'
The transport failed to connect to the server.
I tried many codes but things don't work.
I have read many posts suggesting how to solve the infamous email problem.
I get this error:
CDO.Message.1 error '80040213'
The transport failed to connect to the server.
I tried many codes but things don't work.
Code:
Set cdoConfig = Server.CreateObject("CDO.Configuration")
With cdoConfig
.Fields("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpserver")[/URL] = "194.243.154.62"
.Fields("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpserverport")[/URL] = 25
.Fields("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/sendusing")[/URL] = 2
.Fields("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")[/URL] = 60
.Fields.Update
End With
Set MiaMail = Server.CreateObject("CDO.Message")
MiaMail.Configuration = cdoConfig
MiaMail.From = "mymail@mymail.it"
MiaMail.To = "mymail@mymail.it"
MiaMail.Subject = "richiesta servizio"
MiaMail.HtmlBody = "L'utente con partita IVA nr. "&p_iva&" ha richiesto di accedere ai servizi: <br>"&track&"<BR>"&documenti
MiaMail.Fields.Update()
MiaMail.Send
Set MiaMail = Nothing
Set cdoConfig= Nothing