Skip to main content
1-Visitor
Dec 18, 2013 10:22 PM UTC
Solved

Configuring Windchill SMTP

I've spent the past few days trying to troubleshoot this problem, but I've run out of ideas.

I'm trying to setup the SMTP configuration so Windchill can send emails. I have a gmail account set up for the purpose, and I've taken the following steps:

wt.mail.mailhost=smtp.gmail.com

wt.mail.port=587

(i've tried combining them into mailhost=smtp.gmail.com:587 with no difference)

wt.mail.properties=$(wt.home)$(dir.sep)mail.properties (contains property info for username and password of gmail account)

wt.mail.from=*email address for gmail account"

EMailQueue is running, and it shows when I try to send an e-mail through Windchill, but it fails, claiming "Can't send command to SMTP host" in the message attribute.

MethodServer window shows the following:

INFO : wt.system.out *admin* - EMailMessage message submission failed

INFO : wt.system.out *admin* - EMailMessage Can't send command to SMTP host

No other exceptions appear to be thrown.

I've tried this on multiple ports (25, 587), and with multiple e-mail hosts and accounts. I can telnet into the smtp servers through these ports from the machine running Windchill, so they aren't being blocked. I can't telnet into any of them on port 465 (the client crashes for some reason) but I read somewhere that Windchill doesn't support SSL with SMTP anyway so I didn't bother with it further; for the record, when I try using 465, the message changes to "Can't connect to SMTP host" with reponse=-1

I'm running 10.1 on a test server, so it shouldn't have anything complicated on it; I do believe PTC System Monitor is installed, if that's relevant.

Any advice?

jesshAnswer
12-Amethyst
Dec 19, 2013 3:02 AM UTC

smtp.gmail.com requires use of SSL/TLS.

As of 10.1, Windchill should support SSL and TLS with SMTP by adding appropriate JavaMail properties to wt.properties (i.e. to change the mail protocol to smpts or to enable TLS).

6 replies

jessh12-AmethystAnswer
12-Amethyst
Dec 19, 2013 3:02 AM UTC

smtp.gmail.com requires use of SSL/TLS.

As of 10.1, Windchill should support SSL and TLS with SMTP by adding appropriate JavaMail properties to wt.properties (i.e. to change the mail protocol to smpts or to enable TLS).

Translate
1-Visitor
Dec 19, 2013 9:42 PM UTC

That did the trick. Thanks!

For anyone else who stumbles here in the future, the related properties can be found in the Java documentation for the SMTP package: https://javamail.java.net/nonav/docs/api/com/sun/mail/smtp/package-summary.html

starttls.enable and starttls.required both needed to be true before it would work.

SSL related properties are also there.

Translate
1-Visitor
Nov 22, 2016 11:27 AM UTC

Hello Dale,

 

I am on the same issue. I want to use gmail smtp from Windchill with a simple configuration.

 

Did you also "import the certifcate of the mail server in to the jvm of windchill using the keytool" as described below.

Is certificate required? If it is required, can you please describe a bit or share a video to import the certificate?

 

https://community.ptc.com/t5/Windchill/How-to-Configure-SMTP-of-gmail-service-using-SSL-TLS-properties/m-p/191033#431272%3F&art_lang=en&posno=5&q=gmail%20smtp&source=search

 

 

Regards,

Andaç

Translate