Skip to content

Commit

Permalink
[ci skip] Autodoc commit for e1e5ee6.
Browse files Browse the repository at this point in the history
  • Loading branch information
oscwiag committed Sep 5, 2023
1 parent 0fd5a28 commit e2cb4c1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
23 changes: 17 additions & 6 deletions latest/customizations.html
Original file line number Diff line number Diff line change
Expand Up @@ -1911,9 +1911,10 @@ <h3>Configuration<a class="headerlink" href="#configuration" title="Permalink to
<p>These are the most common configuration properties needed to enable and setup the support ticket feature:</p>
<ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">description</span></code>: Text to customize the support ticket header.</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">from</span></code>: The email address to set the email from field when sending the email. It defaults to the email field set in the form.
This is useful to prevent the incoming emails being considered spam.</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">email</span></code>: Section to configure how the email is sent to the support system.</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">to</span></code>: The destination email address of your Help Desk.</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">from</span></code>: The address to set in the from field when sending the email. It defaults to the email submitted in the support ticket form.
This is useful to prevent the incoming emails being considered spam.</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">delivery_method</span></code>: Rails setting to set the transport mechanism to use. This is usually <code class="docutils literal notranslate"><span class="pre">smtp</span></code>.
For more information see the <a class="reference external" href="https://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration">Rails documentation on mailers</a>.</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">delivery_settings</span></code>: Rails settings object to set the transport configuration properties.
Expand All @@ -1938,13 +1939,18 @@ <h3>Configuration<a class="headerlink" href="#configuration" title="Permalink to
<span class="w"> </span><span class="c1"># Text added to the page under the support ticket header</span><span class="w"></span>
<span class="w"> </span><span class="nt">description</span><span class="p">:</span><span class="w"> </span><span class="p p-Indicator">|</span><span class="w"></span>
<span class="w"> </span><span class="no">My optional description Text for the support ticket feture</span><span class="w"></span>

<span class="w"> </span><span class="c1"># email section is required and should always be present.</span><span class="w"></span>
<span class="w"> </span><span class="c1"># It configures how the support ticket email is sent</span><span class="w"></span>
<span class="w"> </span><span class="nt">email</span><span class="p">:</span><span class="w"></span>
<span class="w"> </span><span class="c1"># Optional.</span><span class="w"></span>
<span class="w"> </span><span class="c1"># To set the email from field. Defaults to the email set in the form.</span><span class="w"></span>
<span class="w"> </span><span class="nt">from</span><span class="p">:</span><span class="w"> </span><span class="s">&quot;[email protected]&quot;</span><span class="w"></span>
<span class="w"> </span><span class="c1"># Required.</span><span class="w"></span>
<span class="w"> </span><span class="c1"># Your support system email address. The email will be sent to this address</span><span class="w"></span>
<span class="w"> </span><span class="nt">to</span><span class="p">:</span><span class="w"> </span><span class="s">&quot;[email protected]&quot;</span><span class="w"></span>
<span class="w"> </span><span class="c1"># Optional.</span><span class="w"></span>
<span class="w"> </span><span class="c1"># To set the email from field. Defaults to the email set in the form.</span><span class="w"></span>
<span class="w"> </span><span class="c1"># The email set in the form will always be added to the reply-to email field</span><span class="w"></span>
<span class="w"> </span><span class="nt">from</span><span class="p">:</span><span class="w"> </span><span class="s">&quot;[email protected]&quot;</span><span class="w"></span>

<span class="w"> </span><span class="c1"># delivery_method and delivery_settings are Rails configuration items</span><span class="w"></span>
<span class="w"> </span><span class="c1"># that can be set in this file to simplify configuration.</span><span class="w"></span>
<span class="w"> </span><span class="c1"># If you prefer, you can configure Rails in the usual way.</span><span class="w"></span>
Expand All @@ -1970,14 +1976,19 @@ <h3>Customizations<a class="headerlink" href="#id21" title="Permalink to this he
the support ticket form fields can be arranged or changed as required.</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>Please note that an <code class="docutils literal notranslate"><span class="pre">email</span></code> field must be present in the form for the support ticket feature to be functional.</p>
<p>Please note that the <code class="docutils literal notranslate"><span class="pre">email</span></code> field must be present in the form for the support ticket feature to be functional.</p>
</div>
<p>Custom fields can be added, but they will require a custom email template to make use of the provided values in the email body.
Override the default email template with your own by dropping a file named <code class="docutils literal notranslate"><span class="pre">_email.text.erb</span></code> into the folder
<code class="docutils literal notranslate"><span class="pre">/etc/ood/config/apps/dashboard/views/support_ticket/email/</span></code></p>
<p>The example below shows a custom form configuration with 3 fields and how to use them in the template to generate the email body.</p>
<blockquote>
<div><div class="highlight-yaml notranslate"><div class="highlight"><pre><span></span><span class="nt">support_ticket</span><span class="p">:</span><span class="w"></span>
<span class="w"> </span><span class="c1"># email section is required and should always be present.</span><span class="w"></span>
<span class="w"> </span><span class="c1"># It configures how the support ticket email is sent</span><span class="w"></span>
<span class="w"> </span><span class="nt">email</span><span class="p">:</span><span class="w"></span>
<span class="w"> </span><span class="nt">to</span><span class="p">:</span><span class="w"> </span><span class="s">&quot;[email protected]&quot;</span><span class="w"></span>

<span class="w"> </span><span class="nt">attributes</span><span class="p">:</span><span class="w"></span>
<span class="w"> </span><span class="nt">email</span><span class="p">:</span><span class="w"></span>
<span class="w"> </span><span class="nt">required</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">true</span><span class="w"></span>
Expand Down
2 changes: 1 addition & 1 deletion latest/searchindex.js

Large diffs are not rendered by default.

0 comments on commit e2cb4c1

Please sign in to comment.