Skip to main content
12-Amethyst
June 30, 2016
Question

Setup Windchill to send email using Microsoft Office 365

  • June 30, 2016
  • 3 replies
  • 8286 views

Hi all,

Has anyone  tried to setup Windchill to send emails using Office 365? If so, can you please let me know the procedure.

Thanks,

Bhagirath

3 replies

12-Amethyst
July 1, 2016

I have not tried it, but I'd start by googling "javamail send office 365" and then applying the settings suggested there -- but via wt.properties settings rather than via Java code.  As per e-mails elsewhere, various I*E and wt properties associated with Windchill mail are preferred, but where no such properties exist (e.g. for TLS), then the documented JavaMail property will do -- at least for recent versions of Windchill.

1-Visitor
July 1, 2016

Hello Bhagirath,

It's not possible to send an email using office 365 directly from Windchill because it's necessary TLS encryption. Please, see this article:

https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS111053

To solve this problem, we use a mail relay server, for example the windows 2008 SMTP server. This article explains How to configure Internet Information Server (IIS) for relay with Office 365: Exchange Online Help

The office 365 account used for relaying windchill emails must have "send as permission" for Windchill users mailboxes.

Regards,

Ramon

12-Amethyst
July 5, 2016

With recent versions of Windchill (i.e. 10.1 or later) you should be able to get mail working with TLS, I believe.

Enter "mail TLS" into search to find related threads.

bkontham12-AmethystAuthor
12-Amethyst
July 5, 2016

Thanks Jess. I found few threads. I will try to configure and verify.

12-Amethyst
August 12, 2016

We have both our production and test servers set up with Office 365.

We use a relay, and from the IT side you have to add the IP address of the server to the relay. Now a note for the below info, IT just told me that since the IP is "allowed" you don't actually have to pass it credentials. So whole mail.properties lines may not be required.

But otherwise it was pretty simple.

In the Windchill folder next to site.xconf we have a mail.properties file.

contents: (replace bold text)

wt.mail.smtp.username=Username

wt.mail.smtp.password=Password

and within wt.properties we have these lines (again replace bold text)

wt.mail.from=email@email.net

wt.mail.mailhost=relay.company.local

wt.mail.mime.charset=UTF-8

wt.mail.properties=$(wt.home)$(dir.sep)mail.properties

wt.mail.verbose=false

wt.mail.verboseTransport=false

Hopefully that helps.

Steve

*edit: I should mention add the info to wt.properties through the the shell/xconfmanager commands.