Ticket notification by email

Moderator: crythias

Locked
angeltostado
Znuny newbie
Posts: 6
Joined: 22 Jan 2015, 18:21
Znuny Version: 4.0.5

Ticket notification by email

Post by angeltostado »

Hello everyone.

The motive of my question is that, after upgrading OTRS 4 to version 5, email notifications have changed.

I know there are templates in the following path: "/opt/otrs/Kernel/Output/HTML/Templates/Standard/NotificationEvent/Email", but in version 4 my colleagues used the following html code without the need to create a template that path:

Code: Select all

<style type="text/css"><!--
* {
    margin: auto !important;
}
hr {
    border: 0;
    height: 1px;
    width: 80%;
}
#yellowPdE {
    background: #ffdc50;
}
-->
</style>
<table align="center" cellpadding="0" cellspacing="0" style="border: 2px solid black; border-collapse:collapse; width:1000px;">
    <tbody>
        <tr>
            <td align="center" id="yellowPdE" style="padding: 10px;">
            <p><span style="font-family:verdana,geneva,sans-serif"><span style="font-size:22px">**************</span></span></p>

            <hr />
            <p><span style="color:#333333">Sistema de Seguimiento de Incidencias</span></p>
            </td>
        </tr>
        <tr>
            <td>
            <table align="center" style="border-bottom: 1px solid black; border-top: 1px solid black; padding: 10px;">
                <tbody>
                    <tr valign="top">
                        <td style="width:75%; font-size: 13px; color: rgb(91, 91, 91); line-height: 1.5;">
                        <p>Hola <OTRS_CUSTOMER_REALNAME>,<br />
                        <br />
                        Su incidencia ha sido registrada en el sistema:</p>
                        </td>
                        <td rowspan="2" style="width:25%; padding: 0px 0px 0px 10px;">
                        <table style="border: 1px solid rgb(204, 204, 204); padding: 5px 4px 5px 4px;">
                            <tbody>
                                <tr>
                                    <td style="border-bottom: 1px solid rgb(187, 187, 187); padding: 6px 0pt; font-size: 13px; color: rgb(255, 82, 0);">Ticket Number: <a href="<OTRS_CONFIG_HttpType>://<OTRS_CONFIG_FQDN>/<OTRS_CONFIG_ScriptAlias>customer.pl?Action=CustomerTicketZoom;TicketNumber=<OTRS_TICKET_TicketNumber>"><OTRS_TICKET_TicketNumber></a></td>
                                </tr>
                                <tr>
                                    <td style="padding: 6px 0pt; font-size: 10px; color: rgb(51, 51, 51);">Si desea añadir más información recuerde que puede responder a este correo electrónico sin modificar el texto que aparecen en el asunto.<br />
                                    <br />
                                    O también puede usar el portal:<br />
                                    <a href="https://*************.es">Portal de incidencias</a></td>
                                </tr>
                            </tbody>
                        </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="padding:8px; border:1px solid #CCCCCC; background-color: #EFEFEF; font-size:13px;">
                        <p><span style="font-size:18px">Resumen del Ticket</span></p>
                        <br />
                        <span style="color:#000080">Ticket URL:</span>&nbsp;<a href="<OTRS_CONFIG_HttpType>://<OTRS_CONFIG_FQDN>/<OTRS_CONFIG_ScriptAlias>customer.pl?Action=CustomerTicketZoom;TicketNumber=<OTRS_TICKET_TicketNumber>"><OTRS_CONFIG_HttpType>://<OTRS_CONFIG_FQDN>/<OTRS_CONFIG_ScriptAlias>customer.pl?Action=CustomerTicketZoom;TicketNumber=<OTRS_TICKET_TicketNumber></a><br />
                        <br />
                        <span style="color:#000080">Asunto:&nbsp;</span><strong><OTRS_CUSTOMER_SUBJECT></strong><br />
                        <br />
                        <span style="color:#000080">Texto:</span><br />
                        <OTRS_CUSTOMER_BODY></td>
                    </tr>
                </tbody>
            </table>
            </td>
        </tr>
        <tr>
            <td align="center" id="yellowPdE" style="padding: 10px;">
            <p><span style="color:#333333">Departamento de Informática de ******************</span></p>
            </td>
        </tr>
    </tbody>
</table>
<br />
&nbsp;
Image

With the new version, this code doesn't work. OTRS keeps only the text portion and remove the part of format.

I have tried this code with the unformatted template, and also not works.

Probably the operation regarding these templates has changed, but I don't know exactly how it works. Could anyone help me with this?

Thank you very much in advance.

Best regards.
lorena1985
Znuny newbie
Posts: 25
Joined: 28 Mar 2016, 04:20
Znuny Version: 5.0.8

Re: Ticket notification by email

Post by lorena1985 »

Hi angeltostado! Have you resolved this problem? I have the version 5.0.8 and I can´t change de HTML for notifications.
Thanks!
lorena1985
Znuny newbie
Posts: 25
Joined: 28 Mar 2016, 04:20
Znuny Version: 5.0.8

Re: Ticket notification by email

Post by lorena1985 »

I resolved editing the fil in /opt/Kernel/Output/HTML/Templates/Standard/NotificationEvent/Email/Default.tt
lorena1985 wrote:Hi angeltostado! Have you resolved this problem? I have the version 5.0.8 and I can´t change de HTML for notifications.
Thanks!
Locked