Использую шаблоны сообщений БСП в ЕРП УХ. При отправке сообщения формируется в html-сообщение одного вида. При получении письма по outlook html-сообщение имеет уже другой вид. Добавляются лишние переносы строк:
. Как это исправить?
Примет сообщения при отправке:
< !DOCTYPE html >
< html dir="ltr" >
< head >
< meta http-equiv="Content-Type" content="text/html; charset=utf-8" / >
< meta http-equiv="X-UA-Compatible" content="IE=Edge" / >
< meta name="format-detection" content="telephone=no" / >
< style type="text/css" >
body{margin:0;padding:8px;}
p{line-height:1.15;margin:0;white-space:pre-wrap;}
ol,ul{margin-top:0;margin-bottom:0;}
img{border:none;}
li >p{display:inline;}
< /style >
< /head >
< body >
< p >< span style="font-weight: bold;line-height: 1.15;" >Поступление на сумму руб. от контрагента.< /span >< /p >
< p style="line-height: 1.15;" >< br >< /p >
< p style="line-height: 1.15;" >< a href="" style="line-height: 1.15;" >Перейти к документу< /a >< /p >
< /body >
< /html >
Показать
Пример сообщения при получении в outlook:
< !DOCTYPE html >< html dir="ltr" >< head >
< meta http-equiv="Content-Type" content="text/html; charset=utf-8" >< !-- < /meta > -- >< meta http-equiv="X-UA-Compatible" content="IE=Edge" >< !-- < /meta > -- >< meta name="format-detection" content="telephone=no" >< !-- < /meta > -- >< style type="text/css" >
body{margin:0;padding:8px;}
p{line-height:1.15;margin:0;white-space:pre-wrap;}
ol,ul{margin-top:0;margin-bottom:0;}
img{border:none;}
li >p{display:inline;}
< /style >< /head >< body >
< p style="font-family: Arial;font-size: 10pt;" >< br >< br >< br >< br >< br >< br >< br >< br >< br >< br >< br >< br >< /p >
< p >< span style="font-weight: bold;line-height: 1.15;" >Поступление на сумму руб. от контрагента.< /span >< /p >
< p style="line-height: 1.15;" >< br >< /p >
< p style="line-height: 1.15;" >< a href="" style="line-height: 1.15;" >Перейти к документу< /a >< /p >
< /body >< /html >
Показать