{{indexmenu_n>200}} ====== Customize ====== It is possible to customize the look of email messages sent by the DV2000. This customization uses a set of files called Templates which it uses to format the email message. While these files can be modified by anybody using any standard text editor, it the doing so should be handled with caution. ==== Template features: ==== * Templates can be localized to a specific language. * Templates are used for both TEXT and HTML email formats. * The body and subject both be customized. * Templates can be customized on a per-mailbox basis. ===== Template Files ===== The product ships with several default templates located in //c:\vs\templates//. These files will be copied to //c:\vs\vmuser// when they are first used. Files located in //c:\vs\templates// should not be modified. All custom templates should be placed into //c:\vs\vmuser//. If a template file exists in the mailbox folder it will take precedence. ==== Naming Convention ==== File names are formatted for specific uses. The format is defined as //TEMPLATE.//. **Example:** VM101TEMPLATE.TXT === Fields === ^Field^Description^ ||Defines what the template should be used for.| ||DV2000 language number the file is to be used for.| ||//TXT// for text based and //HTML// for html based email messages.| === Use Types === ^USE^PREFIX^ | E911 |Emergency Alert body template.| | E911S |Emergency Alert subject template.| | VM |Voice message body template.| | VMS |Voice message subject template.| | CD|Call data body template.| | CDS |Call data subject template.| | WU |Failed wakeup call body template.| | WUS |Failed wakeup call subject template.| === Language === Used to specify the language the template is designed for. The language of the mailbox is used to determine this value. If the language of the mailbox does not exist, the system will use //101 (US English)//. ^NUMBER^LANGUAGE^ |101|US English| |102|UK English| |201|Spanish| |301|Japanese| |401|French, FR| |402|French, CA| |501|Portuguese, BR| |601|German| |701|Italian| |801|Arabic| |901|Chinese, Mandarin| |902|Chinese, Cantonese| |1001|Thai| |1101|Swahili| |1201|Korean| |1301|Russian| |1401|Turkish| ==== Template Syntax ==== Files are technically simple text files containing specific keywords and loop modifiers. A template is loaded each time a message is processed. === Rules === * Files must be ANCII text with no unicode characters. * Formatted correctly per-type. You cannot mix TXT and HTML formats. * HTML must conform to the HTML format. * Subject line templates may only contain a single line. * All keywords are case-sensitive. === Keywords === The following table shows the keywords available, description of what it is used for and a sample output. ^KEYWORD^DESCRIPTION^EXAMPLE^ |${first_name}|First name|John| |${from}|Who is the message from|John Smith| |${from_first}|First name of sender mailbox.|Jane| |${from_last}|Last name of sender mailbox.|Doe| |${from_mailbox}|Senders mailbox number.|560| |${date}|Date and time.|2010/04/18 at 10:34:56 pm| |${description}|Mailbox description.|Holiday Mailbox| |${extension}|Mailbox extension.|7560| |${received}|Date and time message was received.|2010/04/18 at 10:34:56 pm| |${sent}|Date and time message was sent.|2010/04/18 at 10:34:56 pm| |${last_name}|Last name.|Smith| |${length}|Length of the message in time.|10 seconds| |${mailbox}|Mailbox number.|540| |${message_type}|Type of message.|VeMail| |${mif}|Used to place the MIF phrase used for reply-to-delete. | |${time} |Time.|10:34:45 pm| |${total_length}|Total length of time for the entire message.|3 seconds| |${part_number}|What part of the message this is.| |${port}|Port number message was sent for. Used only for call data.|3| |${priority}|Priority of the message.|Urgent or Private| |${to}|Who the message is to.|John Smith| |${to_first}|Receivers first name.|John| |${to_last}|Receivers last name.|Smith| |${to_mailbox}|Receivers mailbox number.|540| === Loops === Loops provide a way for the template system to use the same block of text for repeated information. For example a list of all the attachments in a message use the same template block but will be repeated over and over in the final output therefore creating a list. Currently loops are only supported for the voice message body template and only consist of two loop types. These are reply-to-delete and detail. A loop is defined by BEGIN and END followed by the loop modifier. This modifier is then used as a parent for a standard keyword. **Example:** Part ${part_number}: To: ${detail.to_first} ${detail.to_last} (${detail.to_mailbox}) From: ${detail.from_first} ${detail.from_last} (${detail.from_mailbox}) Created By: ${detail.created_by} ${detail.by_first} ${detail.by_last} Sent: ${detail.sent} Received: ${detail.received} Length: ${detail.length} ===== Samples ===== ==== Subject Line ==== **VMS101TEMPLATE.TXT** ${priority} ${message_type} from ${from} ==== Text Body ==== From: ${from_first} ${from_last} Mailbox: ${from_mailbox} To delete this message from your voice mailbox, reply with original message body. ${mif} To: ${to_first} ${to_last} (${to_mailbox}) From: ${from_first} ${from_last} (${from_mailbox}) Created By: ${created_by} ${by_first} ${by_last} Sent: ${sent} Received: ${received} Total Length: ${total_length} Detail ------------------------------------------------------------------------------ Part ${part_number}: To: ${detail.to_first} ${detail.to_last} (${detail.to_mailbox}) From: ${detail.from_first} ${detail.from_last} (${detail.from_mailbox}) Created By: ${detail.created_by} ${detail.by_first} ${detail.by_last} Sent: ${detail.sent} Received: ${detail.received} Length: ${detail.length} ------------------------------------------------------------------------------ ==== HTML Body ====
From: ${from_first} ${from_last}
Mailbox: ${from_mailbox}
To delete this message from your voice mailbox,
reply with original message body.
${mif}

To: ${to_first} ${to_last} (${to_mailbox})
From: ${from_first} ${from_last} (${from_mailbox})
Created By: ${created_by} ${by_first} ${by_last}
Sent: ${sent}
Received: ${received}
Total Length: ${total_length}
Detail
To From Sent Created By Received Length
${detail.to_first} ${detail.to_last} (${detail.to_mailbox}) ${detail.from_first} ${detail.from_last} (${detail.from_mailbox}) ${detail.sent} ${detail.created_by} ${detail.by_first} ${detail.by_last} ${detail.received} ${detail.length}

Provided by: DuVoice VeMail.