Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
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
Solved! Go to Solution.
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%>"/>
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%>"/>
This forum is such a great resource 🙂
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.)
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>
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!
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.
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