Difference between revisions of "OS4X internet job invitation"

From OS4X
Jump to navigation Jump to search
Line 33: Line 33:
 
   RewriteRule ^ExtUpload /ExtUpload [R=301,L,QSA]
 
   RewriteRule ^ExtUpload /ExtUpload [R=301,L,QSA]
 
  </IfModule>
 
  </IfModule>
 +
 +
== Mail templating ==
 +
For the above mentioned "Mail template file" (available in german and english), the content of the file will be interpreted and variables will be substituted with actual values. The following variables are available:
 +
*<code>#link#</code>: The dynamic http(s) link to the shared job.
 +
*<code>#firstName#</code>: The given name of the user initiating the sharing process.
 +
*<code>#lastName#</code>: The family name of the user initiating the sharing process.
 +
*<code>#desc#</code>: A string combining last name and given name, separated by a comma and a space character (i.e. "Koch, Harald")
 +
*<code>#telephone#</code>: The telephone number of the user initiating the sharing process.
 +
*<code>#fax#</code>: The facsimile number of the user initiating the sharing process.
 +
*<code>#email#</code>: The email address of the user initiating the sharing process.
 +
*<code>#country#</code>: The country name of the user initiating the sharing process.
 +
*<code>#department#</code>: The department name of the user initiating the sharing process.
 +
*<code>#location#</code>: The location name of the user initiating the sharing process.
 +
*<code>#company#</code>: The company name of the user initiating the sharing process: if a longname is configured, the longname will be used, otherwise the shortname will be used.
 +
*<code>#durationDays#</code>: The configurable amount of days of validity of the invitation.
 +
 +
The sent mail will be encoded in UTF-8 characters.
 +
 +
The example for this documentation is based on this mail template:
 +
<pre>
 +
<html><body>
 +
Sehr geehrter Adressat,<br>
 +
<br>
 +
#firstName# #lastName# (#email#) l&auml;dt Sie ein, Daten an ihn/sie hochzuladen. Sie erreichen das bequeme Webinterface unter:<br>
 +
<br>
 +
#link#<br>
 +
<br>
 +
Dieser Link ist f&uuml;r #durationDays# Tage g&uuml;ltig.<br>
 +
<br>
 +
<br>
 +
Ihr OS4X Enterprise<BR>
 +
</body><html>
 +
</pre>

Revision as of 07:37, 12 January 2017

OS4X Enterprise offers a mechanism to invite persons via email address to upload data to your OS4X installation, so incoming jobs will be generated. This easy-to-use mechanism is integrated in OS4X Webaccess.

Requirements

For this feature, you need:

  • OS4X Enterprise license
  • OS4X Release 2017-01-11 or newer installed
  • properly configured mail transfer agent for mailing purposes (for OS4Xvirtual users, see the documentation OS4X VMware virtualized image - mail configuration)
  • PHP 5.3.7 or newer for security options
  • optionally: Apache webserver module "mod_rewrite" active

Configuration

In order to enable the feature, navigate in the administrative web interface to "Configuration" -> "OS4X Enterprise" -> "Webaccess" and activate "Enable job invitations via internet?":

Google ChromeScreenSnapz380.png

By default, the option for invitation is disabled. The configuration options have the following meanings:

  • External URL of "ExtUpload": OS4X Enterprise offers a special web application "ExtUpload" (in a seperate directory, "ExtUpload" in the web server root directory), which needs to be available to external communication partners. Side note: using Apache & mod_rewrite, you can write specific URL rules which have a nicer name for external partners.
  • Temporary upload directory: this is the directory where invited users will create subdirectories containing their uploaded files. Also see "splitting installations" below.
  • Mail sender address: With this optional setting, you can define the SMTP "From:" field in the sent mail.
  • Mail templates (german & english): Absolute path to a file containing the text for the sent mail. See below for usable variables in this mail text.
  • Send as HTML: the generated mail will be sent as HTML email.
  • Mail subject (german & english): The mail subject.
  • Session timeout: invitation sessions are valid for a configurable time frame. With this value, you can define the maximum validity time.
  • Encrypt/Compress session information: the session information of invitations include the expiration date and the invitee numeric database value. This information can optionally be encrypted and/or compressed.
  • Intro page: The optional content of this HTML field is being included in the header of the ExtUpload web page. Any valid HTML code is allowed.


mod_rewrite

In order to have nice URL names, you can use "mod_rewrite" to beautify the URL. The following rule defines that all URLs "http(s)://somedomain.tld/ExtUpload" are forwarded to the corresponding web site:

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteRule ^ExtUpload /ExtUpload [R=301,L,QSA]
</IfModule>

Mail templating

For the above mentioned "Mail template file" (available in german and english), the content of the file will be interpreted and variables will be substituted with actual values. The following variables are available:

  • #link#: The dynamic http(s) link to the shared job.
  • #firstName#: The given name of the user initiating the sharing process.
  • #lastName#: The family name of the user initiating the sharing process.
  • #desc#: A string combining last name and given name, separated by a comma and a space character (i.e. "Koch, Harald")
  • #telephone#: The telephone number of the user initiating the sharing process.
  • #fax#: The facsimile number of the user initiating the sharing process.
  • #email#: The email address of the user initiating the sharing process.
  • #country#: The country name of the user initiating the sharing process.
  • #department#: The department name of the user initiating the sharing process.
  • #location#: The location name of the user initiating the sharing process.
  • #company#: The company name of the user initiating the sharing process: if a longname is configured, the longname will be used, otherwise the shortname will be used.
  • #durationDays#: The configurable amount of days of validity of the invitation.

The sent mail will be encoded in UTF-8 characters.

The example for this documentation is based on this mail template:

<html><body>
Sehr geehrter Adressat,<br>
<br>
#firstName# #lastName# (#email#) lädt Sie ein, Daten an ihn/sie hochzuladen. Sie erreichen das bequeme Webinterface unter:<br>
<br>
#link#<br>
<br>
Dieser Link ist für #durationDays# Tage gültig.<br>
<br>
<br>
Ihr OS4X Enterprise<BR>
</body><html>