FoxPro and .NET Interop
wwDOTNEDBRIDGE, sendmail failed with Connectivity error:__DOTNETBRIDGE
Gravatar is a globally recognized avatar based on your email address. wwDOTNEDBRIDGE, sendmail failed with Connectivity error:__DOTNETBRIDGE
  wong
  All
  Jul 14, 2020 @ 03:32am

Dear Sir,

I've been using wwdotnetbridge to send email for some times.

I did some testing in my program, but decided to cancel the changes. So I copied Back the old prg's. But after that, everytime I sent email, it failed. I tried to capture the error, like this ( my program and how I displayed the error ):

do wwDotNetBridge.prg
oBridge = GetwwDotNetBridge()

** oBridge.LoadAssembly('Encryption.dll')
oBridge.LoadAssembly('SMTPLibrary.dll')

* Send an email.

loMail         = oBridge.CreateInstance('SMTPLibrary.SMTP')


WITH loMail

.MailServer    = rserver
.Username      = rUser
.Password      = rpass
.ServerPort    = rport
.SenderEmail   = rsender
.SenderName    = rname
.Subject       = rjudul
.message       = rbody    
.useSSL        = rUseSSL 
.useHTML       = rUseHTML 
.Recipients    = rRecipients
.CCRecipients     = rCCRecipients
.BCCRecipients    = rBCCRecipients



	IF TYPE('rAttc',1)='A' &&array
 		FOR i=1 TO ALEN(rAttc)
			.AddAttachment(rAttc[i])
		ENDFOR
	ELSE
		jumlah=Alines(_arroutA,rAttc,.F.,";")
		Dimension _arroutA(jumlah)
			
		FOR i=1 TO ALEN(_arroutA)
			.AddAttachment(_arroutA[i])
		ENDFOR
	ENDIF
	
	llReturn = .SendMail()
	LOCAL ARRAY _arr(1)
	AERROR('_arr')
	MESSAGEBOX(_arr[1])
	MESSAGEBOX(_arr[2])
MESSAGEBOX(_arr[3])
MESSAGEBOX(_arr[4])
MESSAGEBOX(_arr[5])
MESSAGEBOX(_arr[6])

What I got was error number 1526, with message : connectivity error:__DOTNETBRIDGE.

Could you help point me where I should be checking,please? Thank you so much. I realy appreciate your help.

Regards, Wong

Gravatar is a globally recognized avatar based on your email address. re: wwDOTNEDBRIDGE, sendmail failed with Connectivity error:__DOTNETBRIDGE
  Rick Strahl
  wong
  Jul 14, 2020 @ 01:51pm

Don't know - you need to check with the third party library you're using.

Usually a connection error means:

  • Bad server name/port
  • Use or non-use of SSL when supported
  • Firewall or A/V issues

Other than that check with the library vendor/publisher.

+++ Rick ---

© 1996-2024