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

  • Thread starter Vittorio Pavesi
  • 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

CDO Object: Setting Mail Priority (Urgent, Medium, Low) 4
CDO Mail error 438 3
Did not receive email via CDO.message 1
Macro email 4
CDO and SMTP 2
Excel CDO 5
HTML Email 2
CDO Message 1

Top