Editing
Email Templates
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Overview === * Email templates allow auto-filling of fields when sending a report via email * The subject, attachment name and body of the email can be saved into the same template for selection when emailing * Multiple email templates can be created for each area of PRS you may be generating reports from === Setting up Templates === * Navigate to the tab where your report is generated e.g. Purchase Orders [[File:Tab.png|frameless|354x354px]] * Find the [[File:Setup.png|frameless]] tab and select "Email Templates" β Select the Add [[File:Add.png|frameless]] button at the bottom right β the Template Editor is now visible * Name: enter the desired template name which will appear in the report viewer * For other fields, press the Edit button to open up the script editor for the field ==== Using the Script Editor ==== * The dropdown list on the right column contains different entities that can be included in the template. * Select an entity to view the available fields from that entity. E.g. Purchase Order [[File:Script edt.png|frameless]] * Now double click the first option in that entity, which will automatically produce the correct script in the editor. Do not change the curly brackets as these are needed for parsing the script later on. [[File:Script edt2.png|frameless|403x403px]] * Now double click on options within the entity to be included in the template, along with normal text. An example of the email template body is provided below: * Press the Red Save icon when finished [[File:Image.png|frameless|736x736px]] * The above template body script will produce the following text in the actual email: [[File:Email.png|frameless|420x420px]] === Using a Template from the Report Viewer === * If you have just saved / edited a new email template, change tabs and return to the same tab to refresh the data being supplied to the report viewer * Open a report from within the same tab / area β if you have one or more email templates saved, they will appear as options in the top ribbon where the other controls are β click on one to generate an email with the supplied template [[File:Email templates.png|frameless|722x722px]]
Summary:
Please note that all contributions to PRS may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
PRS:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Refresh
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information