Title: Customization of Email messages with HTML content Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Email messages sent out to VCL users can be customized under the Site Configuration part of the site. However, HTML content is not allowed to be entered via the web form for security reasons. VCL 2.5.1 introduced a method of including HTML content in the email messages using a command line script run from a management node. The script is in the bin directory of the management node code. The same substitution available in plain text messages can be used in the HTML messages. Usage: :::BashLexer vclmessages.pl --getmessagenames vclmessages.pl --dumpmessage '' vclmessages.pl --setmessage '' --htmlfile --subject vclmessages.pl --resetmessage '' vclmessages.pl --help|-? Where --**getmessagenames** displays a list of all available names that can be used
--**dumpmessage** displays the current value of a message
--**setmessage** sets the value of a message to the contents of the specified file
--**resetmessage** sets the value of a message back to the original value as distributed with VCL
<**name of message**> = the name of the message from the database (enclose in single quotes)
(use --getmessagenames to get a list of message names) <**filename**> = filename (including path) of file containing html contents for email message <**message subject**> = subject for email message (enclose in single quotes) So, use --**getmessagenames** to get a list of all of the messages that can be set. Use --**dumpmessage** to see the current contents of a message. To set a new message, create a file containing the HTML that you would like used as the message. Then, use --**setmessage** to set the contents of the message, specifying both a message subject and the file containing the contents of the HTML message. To reset a message back to the stock message supplied at VCL installation, use --**resetmessage**. Only the "Global" messages can be reset. To set a new message for a specific affiliation, an affiliation specific message, plain text message needs to be created through the web UI first. Then, that message can be converted to HTML using the script.