cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We are happy to announce the new Windchill Customization board! Learn more.

email from non-production Windchill system

MikeLockwood
22-Sapphire I

email from non-production Windchill system

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

1 ACCEPTED SOLUTION

Accepted Solutions

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%>"/>

View solution in original post

7 REPLIES 7

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%>"/>
MikeLockwood
22-Sapphire I
(To:ahanson)

This forum is such a great resource 🙂

TomU
23-Emerald IV
(To:MikeLockwood)

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>
aacciano3
14-Alexandrite
(To:TomU)

@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!

  

TomU
23-Emerald IV
(To:aacciano3)

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.

aacciano3
14-Alexandrite
(To:TomU)

Thank you @TomU !

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

Top Tags