Has anyone tried to setup Windchill to send emails using Office 365? If so, can you please let me know the procedure.
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.
It's not possible to send an email using office 365 directly from Windchill because it's necessary TLS encryption. Please, see this article:
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.
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.
Nope. I set the following properties in Site.xconf but Windchill is failing to connect to the Office 365 server.
Any suggestions will be greatly appreciated.
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)
and within wt.properties we have these lines (again replace bold text)
Hopefully that helps.
*edit: I should mention add the info to wt.properties through the the shell/xconfmanager commands.
What error message is printed in the logs when Windchill attempts to connect to the smtp server? That message should give us a better idea of why Windchill is failing to connect.