Тема: Шаблон email уведомлений
Здравствуйте! Пытался поменять основу для мыльников (notice_template.tpl) при попытке отправить выбивало 503 ошибку (внутри запроса ругалось на 55 строку (ожидало : а по факту }) Экранировал html до smarty переменных, в мыле начало передавать всю главную страница сайта лол)
не могу понять в чем причина.
<!-- TPL -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--[if !mso]><!-->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<style type="text/css">
@media screen and (max-width: 640px) {
.left-sidebar .column100 {
max-width: 100% !important;
}
[data-column] {
max-width: 100% !important;
}
}
@media screen and (max-width: 400px) {
img {
width: 100%;
}
.two-column .column,
.three-column .column {
max-width: 100% !important;
}
.two-column img {
max-width: 100% !important;
}
.three-column img {
max-width: 50% !important;
}
[data-column] {
max-width: 100% !important;
}
}
@media screen and (min-width: 401px) and (max-width: 640px) {
img {
width: 100%;
}
.three-column .column {
max-width: 33% !important;
}
.two-column .column {
max-width: 50% !important;
}
[data-column] {
max-width: 100% !important;
}
}
</style>
<!--[if (gte mso 9)|(IE)]> <style type="text/css"> table {border-collapse:collapse !important;} </style> <![endif]-->
</head>
<body style="margin:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;min-width:100%;">
<!-- template-body -->
<div style="margin:0;width:100%;table-layout:fixed;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;">
<table width="100%" cellspacing="0" cellpadding="0" style="width: 100%;background-color: #f1f1f1;background-repeat: no-repeat;" background="">
<tbody>
<tr>
<!-- template-blocks -->
<td data-template-wrapper="" valign="top" align="center" style="padding:0 0 0 0;">
<table data-block-id="" width="100%" cellspacing="0" cellpadding="0" border="0" style="width:100%;background-repeat: no-repeat;">
<tbody>
<tr>
<td style="font-size: 0;line-height: 10px;"> </td>
<td data-template-content="" width="600" align="top" style="width:600px;padding-left:0px;padding-right:0px;background-repeat: no-repeat;">
<div style="max-width:600px;">
<!--[if (gte mso 9)|(IE)]>
<table width="600" align="center" style="border-spacing:0;font-family:Arial, Helvetica, sans-serif;color:#333333;" >
<tr>
<td style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;">
<![endif]-->
<table align="center" style="border-spacing:0;font-family:Arial, Helvetica, sans-serif;color:#333333;margin:0 auto;width:100%;max-width:600px;">
<tbody>
<tr>
<td style="padding-right:0;padding-left:0;text-align:center;font-size:0;padding-top:0;padding-bottom:0;">
<!--[if (gte mso 9)|(IE)]>
<table width="100%" style="border-spacing:0;font-family:Arial, Helvetica, sans-serif;color:#333333;" >
<tr>
<![endif]-->
<!--[if (gte mso 9)|(IE)]>
<td width="600" valign="top" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<![endif]-->
<div data-column style="width:100%;display:inline-block;vertical-align:top;max-width:600px;">
<table style="border-spacing:0;font-family:Arial, Helvetica, sans-serif;color:#333333;width:100%;">
<tbody>
<tr>
<td style="padding-bottom:0px;padding-right:0px;padding-left:0px;padding-top:0px;">
<table data-column-content style="border-spacing:0;font-family:Arial, Helvetica, sans-serif;color:#333333;width:100%;font-size:14px;text-align:center;">
<tbody>
<tr data-element-type="spacer">
<td height="40" style="height:40px;padding:0;"></td>
</tr>
<tr data-element-type="image">
<td align="center" style="padding-top:0px;padding-bottom:0px;padding-right:0px;padding-left:0px;">
<img src="https://image.sendsay.ru/image/x_0299841/block/202111/10114819/123.png" width="600" alt="" style="border-width:0;height:auto;display:block;max-width:600px;width:100%;">
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td>
<![endif]-->
<!--[if (gte mso 9)|(IE)]>
</tr>
</table>
<![endif]-->
</td>
</tr>
</tbody>
</table>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</div>
</td>
<td style="font-size: 0;line-height: 10px;"> </td>
</tr>
</tbody>
</table>
<table data-block-id="" width="100%" cellspacing="0" cellpadding="0" border="0" style="width:100%;background-repeat: no-repeat;">
<tbody>
<tr>
<td style="font-size: 0;line-height: 10px;"> </td>
<td data-template-content="" width="600" align="top" style="width:600px;padding-left:0px;padding-right:0px;background-color: #ffffff;background-repeat: no-repeat;-webkit-border-radius: 0px 0px 15px 15px;-moz-border-radius: 0px 0px 15px 15px;border-radius: 0px 0px 15px 15px;">
<div style="max-width:600px;">
<!--[if (gte mso 9)|(IE)]>
<table width="600" align="center" style="border-spacing:0;font-family:Arial, Helvetica, sans-serif;color:#333333;" >
<tr>
<td style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;">
<![endif]-->
<table align="center" style="border-spacing:0;font-family:Arial, Helvetica, sans-serif;color:#333333;margin:0 auto;width:100%;max-width:600px;">
<tbody>
<tr>
<td style="padding-right:0;padding-left:0;text-align:center;font-size:0;padding-top:0;padding-bottom:0;">
<!--[if (gte mso 9)|(IE)]>
<table width="100%" style="border-spacing:0;font-family:Arial, Helvetica, sans-serif;color:#333333;" >
<tr>
<![endif]-->
<!--[if (gte mso 9)|(IE)]>
<td width="600" valign="top" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<![endif]-->
<div data-column style="width:100%;display:inline-block;vertical-align:top;max-width:600px;">
<table style="border-spacing:0;font-family:Arial, Helvetica, sans-serif;color:#333333;width:100%;">
<tbody>
<tr>
<td style="padding-bottom:0px;padding-right:25px;padding-left:25px;padding-top:25px;">
<table data-column-content style="border-spacing:0;font-family:Arial, Helvetica, sans-serif;color:#333333;width:100%;font-size:14px;text-align:center;">
<tbody>
<tr data-element-type="text" style="color:#333333;">
<td style="padding-bottom:30px;padding-right:5px;padding-left:5px;padding-top:0px;">
<p align="left" style="word-break:break-word;margin:0; line-height:22.4px;" data-lineHeightRatio=1.6><span style="font-size: 16px; line-height: 25.6px;">{block name="content"}{/block}.</span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td>
<![endif]-->
<!--[if (gte mso 9)|(IE)]>
</tr>
</table>
<![endif]-->
</td>
</tr>
</tbody>
</table>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</div>
</td>
<td style="font-size: 0;line-height: 10px;"> </td>
</tr>
</tbody>
</table>
<table data-block-id="" width="100%" cellspacing="0" cellpadding="0" border="0" style="width:100%;background-repeat: no-repeat;">
<tbody>
<tr>
<td style="font-size: 0;line-height: 10px;"> </td>
<td data-template-content="" width="600" align="top" style="width:600px;padding-left:0px;padding-right:0px;background-repeat: no-repeat;">
<div style="max-width:600px;">
<!--[if (gte mso 9)|(IE)]>
<table width="600" align="center" style="border-spacing:0;font-family:Arial, Helvetica, sans-serif;color:#333333;" >
<tr>
<td style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;">
<![endif]-->
<table align="center" style="border-spacing:0;font-family:Arial, Helvetica, sans-serif;color:#333333;margin:0 auto;width:100%;max-width:600px;">
<tbody>
<tr>
<td style="padding-right:0;padding-left:0;text-align:center;font-size:0;padding-top:0;padding-bottom:0;">
<!--[if (gte mso 9)|(IE)]>
<table width="100%" style="border-spacing:0;font-family:Arial, Helvetica, sans-serif;color:#333333;" >
<tr>
<![endif]-->
<!--[if (gte mso 9)|(IE)]>
<td width="600" valign="top" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<![endif]-->
<div data-column style="width:100%;display:inline-block;vertical-align:top;max-width:600px;">
<table style="border-spacing:0;font-family:Arial, Helvetica, sans-serif;color:#333333;width:100%;">
<tbody>
<tr>
<td style="padding-bottom:0px;padding-right:0px;padding-left:0px;padding-top:0px;">
<table data-column-content style="border-spacing:0;font-family:Arial, Helvetica, sans-serif;color:#333333;width:100%;font-size:14px;text-align:center;">
<tbody>
<tr data-element-type="spacer">
<td height="20" style="height:20px;padding:0;"></td>
</tr>
<tr data-element-type="html">
<td style="max-width:100%;text-align:initial;word-break:break-word;display:block;padding-bottom:5px;padding-right:5px;padding-left:5px;padding-top:5px;font-family:-apple-system,BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue,sans-serif;">
{if $CONFIG.facebook_group}
<a style="display: inline-block; padding: 0 5px;" href="{$CONFIG.facebook_group}" target="_blank">
<img src="{$SITE->getRootUrl(true)}/modules/alerts/view/img/facebook.png" width="32" style="border: none;"/>
</a>
{/if}
{if $CONFIG.twitter_group}
<a style="display: inline-block; padding: 0 5px;" href="{$CONFIG.twitter_group}" target="_blank">
<img src="{$SITE->getRootUrl(true)}/modules/alerts/view/img/twitter.png" width="32" style="border: none;"/>
</a>
{/if}
{if $CONFIG.instagram_group}
<a style="display: inline-block; padding: 0 5px;" href="{$CONFIG.instagram_group}" target="_blank">
<img src="{$SITE->getRootUrl(true)}/modules/alerts/view/img/instagram.png" width="32" style="border: none;"/>
</a>
{/if}
{if $CONFIG.vkontakte_group}
<a style="display: inline-block; padding: 0 5px;" href="{$CONFIG.vkontakte_group}" target="_blank">
<img src="{$SITE->getRootUrl(true)}/modules/alerts/view/img/vk.png" width="32" style="border: none;"/>
</a>
{/if}
{if $CONFIG.youtube_group}
<a style="display: inline-block; padding: 0 5px;" href="{$CONFIG.youtube_group}" target="_blank">
<img src="{$SITE->getRootUrl(true)}/modules/alerts/view/img/youtube.png" width="32" style="border: none;"/>
</a>
{/if}
{if $CONFIG.viber_group}
<a style="display: inline-block; padding: 0 5px;" href="{$CONFIG.viber_group}" target="_blank">
<img src="{$SITE->getRootUrl(true)}/modules/alerts/view/img/viber.png" width="32" style="border: none;"/>
</a>
{/if}
{if $CONFIG.telegram_group}
<a style="display: inline-block; padding: 0 5px;" href="{$CONFIG.telegram_group}" target="_blank">
<img src="{$SITE->getRootUrl(true)}/modules/alerts/view/img/telegram.png" width="32" style="border: none;"/>
</a>
{/if}
{if $CONFIG.whatsapp_group}
<a style="display: inline-block; padding: 0 5px;" href="{$CONFIG.whatsapp_group}" target="_blank">
<img src="{$SITE->getRootUrl(true)}/modules/alerts/view/img/whatsapp.png" width="32" style="border: none;"/>
</a>
{/if}
</td>
</tr>
<tr data-element-type="text" style="color:#333333;">
<td style="padding-bottom:25px;padding-right:25px;padding-left:25px;padding-top:25px;">
<p align="center" style="word-break:break-word;margin:0; line-height:16.8px;" data-lineHeightRatio=1.2><font color="#696969"><span style="font-size: 12px; line-height: 14.4px;">ООО «Плантации водной памяти», ул. Ленина 1<br>ОГРН 1234567890123</span></font></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td>
<![endif]-->
<!--[if (gte mso 9)|(IE)]>
</tr>
</table>
<![endif]-->
</td>
</tr>
</tbody>
</table>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</div>
</td>
<td style="font-size: 0;line-height: 10px;"> </td>
</tr>
</tbody>
</table>
</td>
<!-- /template-blocks -->
</tr>
</tbody>
</table>
</div>
<!-- /template-body -->
</body>
</html>