(0x80040213): The transport failed to connect to the server

  • Thread starter Thread starter Vittorio Pavesi
  • Start date Start date
V

Vittorio Pavesi

Hi All,
sometimes (1 e-mail sent every 80) I got the following error:
System.Runtime.InteropServices.COMException (0x80040213): The transport
failed to connect to the server
What does it mean ?
Regards

Vittorio



This is the code:

Const cdoSendUsingMethod =
"http://schemas.microsoft.com/cdo/configuration/sendusing"
Const cdoSendUsingPort = 2
Const cdoSMTPServer =
"http://schemas.microsoft.com/cdo/configuration/smtpserver"
Const cdoSMTPConnectionTimeout =
"http://schemas.microsoft.com/cdo/configuration/smtpConnectionTimeout"
iMsg = CreateObject("CDO.Message")
iConf = CreateObject("CDO.Configuration")
Flds = iConf.Fields
Flds(cdoSendUsingMethod) = cdoSendUsingPort
Flds(cdoSMTPServer) = NotificationSMTP
Flds(cdoSMTPConnectionTimeout) = 15

Flds.Update()
With iMsg
..Configuration = iConf
..To = NotificationReceiver
..From = "Health Monitor"
..Sender = NotificationSender
..Subject = "Health Monitor - Notification"
..TextBody = MessageString
..Send()
End With
 
Back
Top