Skip to main content
22-Sapphire I
September 5, 2018
Solved

email from non-production Windchill system

  • September 5, 2018
  • 7 replies
  • 4376 views

Hello all.  We now have a training server (rehosted from production) and would like to fully use emails on it.  Emails cannot currently be distinguished as different from those from production.  We've set a different value for property: wt.mail.from but it doesn't get included in the email.

 

It would that this would be a very common thing.  Thoughts?

thanks

Best answer by ahanson

In $WT_HOME/tasks/wt/mail/SendMail.xml:

 

Update this line:

  

 <ie:param name="FROM" data="${@FORM[0]FROM[0]}" default="<%=DEFAULT_FROM%>"/>

 

Like:

 <ie:param name="FROM" data="TRAINING-SERVER@domain.com" default="<%=DEFAULT_FROM%>"/>

7 replies

ahanson7-BedrockAnswer
7-Bedrock
September 5, 2018

In $WT_HOME/tasks/wt/mail/SendMail.xml:

 

Update this line:

  

 <ie:param name="FROM" data="${@FORM[0]FROM[0]}" default="<%=DEFAULT_FROM%>"/>

 

Like:

 <ie:param name="FROM" data="TRAINING-SERVER@domain.com" default="<%=DEFAULT_FROM%>"/>
22-Sapphire I
September 5, 2018

This forum is such a great resource 🙂

23-Emerald IV
September 5, 2018

I modified all the notification templates on the test system to clearly communicate the emails are not from production.  Anytime I refresh the server (rehost) I just re-copy the modifed templates back into the codebase  (using wtSafeArea.)

 

Approaching Deadline.png

 

Here is the HTML block added to each template:

<style>
table#test_server {
 background-color: #ffff00;
 border: 1px solid;
 border-collapse: collapse;
 border-color: #000000;
 color: #000000;
 font-size: 2em;
 font-style: arial, helvetica;
 font-weight: bold;
 padding: 5px;
 text-align: center;
 width:100%;
}
</style>
</head>
<body>
<table id="test_server">
 <tr>
 <td>Windchill Test Server - Not Live Data!</td>
 </tr>
</table>
<br>
14-Alexandrite
October 9, 2019

@TomU 

Thank you for sharing this technique, very useful!

On another note, I have tried to find the template for the "Quick Links>Send Page" without success.
Do you happen to know which one is?

Thanks anyway!

  

23-Emerald IV
October 9, 2019

From a quick glance I don't think a template is being used.  Looks to just be hard coded.  Might want to open a case with PTC tech support and ask them.

22-Sapphire I
September 6, 2018

Suggestions below really helped - in place on all our non-production systems.

There are two separate aspects: A) Who the email is from, which shows in a user's inbox B) Info in the body of the email in color reminding the user of which server the email is from.

Tech support case C14231596 opened and good discussion on it.  PTC will likely format / organize this info nicely and incorporate in standard Help info.

It would seem that this has pretty much universal application to all customers who have one or more non-production Windchill systems and want to utilize emails with them.

thanks again