Skip to main content
10-Marble
September 22, 2020
Solved

Mail Server couldn't connect. Not getting configuration?

Hello,

I have recently imported the Mail Server Extension (v3.4) in to Thingworx v9.

Configuration of the inherited Thing is:

SMTP Server name configured, SMTP Server Port 25, no authentication

 

When manually invoking the SendMessage Service I get the following error message:

Unable to Invoke Service SendMessage on MailServerThing : Couldn't connect to host, port: localhost, 80; timeout 30000

 

This says to me that it's still trying to connect to SMTP server on the local machine through port 80, despite the configuration.

 

Any ideas?

Thanks

DKinloughAnswer
10-Marble
November 9, 2020

Update.

After installing the latest version, restarting the Server cleared the error above.

 

Thanks

5 replies

DKinlough10-MarbleAuthor
10-Marble
September 22, 2020

OK, so I upgraded the extension to v3.6 and am now getting.

 

ErrorCode(3592ead1-52d2-4fc4-b846-e66318a8b506), Cause(null), Reason(Access was attempted on a null reference variable.), Possible Resolutions(Remove the reference to the null variable within your extension code.)

Translate
14-Alexandrite
October 30, 2020

Hi @DKinlough ,

I have gone through the same problem. Looks like the old version is not working anymore on TW 9.0 because the initialization method has a different signature.

Before TW 9.0: 

                        protected void initializeThing() 

From TW 9.0+: 

                        protected void initializeThing(ContextType contextType) throws Exception {

 

I am attaching the updated extension but it is not covered by any license and it's not official.

Translate
14-Alexandrite
October 30, 2020

Please have a look to the official extension shared in the PTC support website on the download software page for TW 9:

https://support.ptc.com/appserver/auth/it/esd/product.jsp?prodFamily=TWX

 

in the group "ThingWorx Mail Extension".

Translate