Skip to content

Advanced configurations

netwolfuk edited this page Aug 5, 2014 · 9 revisions

Additional options can be configured.

To override the location of the template path and attachment path.

        <template-path path="/opt/Foo/Bar/templates" />
        <attachment-path path="/opt/Foo/Bar/attachments" />

Enable or disable image attachment. Some email systems don't like email with attachments. If you want to disable tcPrettyEmail's inline attachments, set this to false. Defaults to true.

        <attach-images attach="true" />

Control the maximum number of failed tests to show in the email.

        <max-tests-to-show value="5" />

Control the maximum number of lines worth of errors to show in the email.

        <max-error-lines-to-show value="100" />

Sending email to Gmail (or other TLS enabled servers).

<pretty-email>
  <smtp host="smtp.gmail.com" port="587" 
          username="myGmailUsername"
          password="myGmailPassword"
          from-address="[email protected]" 
          from-name="Friendly Name" 
          starttls-enabled="true" />
</pretty-email>