SmiData Mail Sender, Subject, Body and HtmlBody

The result shows the plain text result of the vipers. All the values shows here can be configured in the SmiServer.exe.config file in the mail section. The mail plain text body and mail html body shown here are the default values.

Smartsite SXML CopyCode image Copy Code
===== Mail sender
{smidata.mail.sender(smi20)}

===== Mail subject
{smidata.mail.subject(smi20)}

===== Mail plain text body:
{smidata.mail.body(smi20)}

===== Mail html body:
{smidata.mail.htmlbody(smi20)}
Example Result CopyCode image Copy Code
===== Mail sender
webmaster@mycompany.com

===== Mail subject
Smartsite Management Information

===== Mail plain text body:
This mail message contains a Smartsite Management Information report. You have configured Smartsite Management Information to send you this report on a regular basis. You will continue to receive this message at the configured interval, unless you change the configuration of this report.

This message has been automatically generated and sent to you.

===== Mail html body:
<se:xhtmlpage doctype="xhtml10strict">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Smartsite Management Information report</title>
        <style type="text/css">
            body {
                font-family: arial, verdana;
                font-size: 12pt;
            }

            h1 {
                font-size: 16pt;
            }

            table {
                border: solid 1px #e0e0e0;
                font-size: 10pt;
            }

            th {
                text-align: left;
                width: 200px;
            }
        </style>
    </head>
    <body>
        <h1>Smartsite Management Information report</h1>
        <p>This mail message contains a Smartsite Management Information report. You have configured Smartsite Management Information to send you this report on a regular basis. You will continue to receive this message at the configured interval, unless you change the configuration of this report.
        </p>
        <table>
            <tr>
                <th>Site</th>
                <td>{buffer.get(sitename)}</td>
            </tr>
            <tr>
                <th>Report</th>
                <td>{buffer.get(report)}</td>
            </tr>
            <tr>
                <th>From</th>
                <td>{locale.formatlongdate($from)}</td>
            </tr>
            <tr>
                <th>Until</th>
                <td>{locale.formatlongdate($until)}</td>
            </tr>
            <tr>
                <th>Scope</th>
                <td>{buffer.get(scopetype)}</td>
            </tr>
            <tr>
                <th>Language</th>
                <td>
                    <se:switch expression="string.substring($locale, 0, 2)">
                        <se:case value="en">English</se:case>
                        <se:case value="nl">Dutch</se:case>
                        <se:case>{buffer.get(locale)}</se:case>
                    </se:switch>
                </td>
            </tr>
        </table>
        <p>This message has been automatically generated and sent to you.
        </p>
    </body>
</html>
</se:xhtmlpage>