You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2019/06/14 14:49:18 UTC

svn commit: r1861345 - /vcl/site/trunk/content/docs/htmlemailmessages.mdtext

Author: jfthomps
Date: Fri Jun 14 14:49:18 2019
New Revision: 1861345

URL: http://svn.apache.org/viewvc?rev=1861345&view=rev
Log:
initial creation of page: Customization of Email messages with HTML content

Added:
    vcl/site/trunk/content/docs/htmlemailmessages.mdtext   (with props)

Added: vcl/site/trunk/content/docs/htmlemailmessages.mdtext
URL: http://svn.apache.org/viewvc/vcl/site/trunk/content/docs/htmlemailmessages.mdtext?rev=1861345&view=auto
==============================================================================
--- vcl/site/trunk/content/docs/htmlemailmessages.mdtext (added)
+++ vcl/site/trunk/content/docs/htmlemailmessages.mdtext Fri Jun 14 14:49:18 2019
@@ -0,0 +1,61 @@
+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.
+
+#Customization of Email messages with HTML content
+
+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:
+<pre><code>
+vclmessages.pl --getmessagenames
+vclmessages.pl --dumpmessage '&lt;name of message&gt;'
+vclmessages.pl --setmessage '&lt;name of message&gt;' --htmlfile &lt;filename&gt; --subject &lt;message subject&gt;
+vclmessages.pl --resetmessage '&lt;name of message&gt;'
+
+vclmessages.pl --help|-?
+</code></pre>
+
+Where
+
+--getmessagenames displays a list of all available names that can be used<br>
+--dumpmessage displays the current value of a message<br>
+--setmessage sets the value of a message to the contents of the specified file<br>
+--resetmessage sets the value of a message back to the original value as distributed with VCL<br>
+
+&lt;name of message&gt; = the name of the message from the database (enclose in single quotes)<br>
+<span style="margin-left:40px;">(use --getmessagenames to get a list of message names)</span>
+
+&lt;filename&gt; = filename (including path) of file containing html contents for email message
+
+&lt;message subject&gt; = 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.
\ No newline at end of file

Propchange: vcl/site/trunk/content/docs/htmlemailmessages.mdtext
------------------------------------------------------------------------------
    svn:eol-style = native