Skip to main content
6-Contributor
January 29, 2025
Question

SMTP windchill with microsoft 365

  • January 29, 2025
  • 2 replies
  • 699 views

Version: Windchill 12.0

 

Use Case: after switching from gmail to microsoft 365 he no longer sends me mail


Description:

i have set
mail.properties
wt.mail.smtp.username=xxxxxxx
wt.mail.smtp.password=xxxxxxx
wt.properties
wt.mail.mailhost=smtp.office365.com:587
wt.mail.properties=\$(wt.home)\$(dir.sep)mail.properties
wt.mail.smtp.starttls.enable=true

site.xconf

<Property name="wt.mail.mailhost" overridable="true" targetFile="codebase/wt.properties"
value="smtp.office365.com:587"/>
<Property name="wt.mail.properties" overridable="true"
targetFile="codebase/wt.properties"
value="$(wt.home)$(dir.sep)mail.properties"/>
<Property name="wt.mail.smtp.starttls.enable" overridable="true"
targetFile="codebase/wt.properties"
value="true"/>

 

Where is the error?

Thanks

 

2 replies

24-Ruby III
January 30, 2025

Article - "How to configure an SMTP mail server in Windchill": https://www.ptc.com/en/support/article/CS46949 

18-Opal
January 30, 2025

@arongoni ,

You stated, "he no longer sends me mail".

Is anyone receiving email? Or is it just you that is not receiving email?

arongoni6-ContributorAuthor
6-Contributor
January 30, 2025

He no longer sends mail to anyone

18-Opal
January 30, 2025

Likely the problem is in the IE task SendMail.xml

This task includes a webject. name Send-Mail type MSG

If using Office 365 mail, the FROM parameter's data in the Send-Mail webject must be the value of wt.mail.smtp.username from mail.properties.

 

Therefore, if using Office 365 mail the Send-Mail webject's FROM parameter's data should be hardcoded with the email address specified in mail.properties wt.mail.smtp.username.