php - Postfix sends to Exchange Server with "=" characters at end of the lines -
i created automated notification scheme in php using mail()
function via postfix mta. however, users of outlook, exchange server receive notifications equal "=" characters @ end of lines , broken html.
the exchange server recognized html/text has problem "soft line breaks" or decode quoted-printable or parsing it? how solve problem?
here encodings , schema i'am using:
mime-version: 1.0 content-type: multipart/alternative; boundary="8-10000000000-10000000000:87141" message-id: <20130218130031.e9923d98115@diplo-www> date: mon, 18 feb 2013 14:00:31 +0100 (cet) --8-10000000000-10000000000:87141 content-type: text/plain; charset=utf-8 content-transfer-encoding: quoted-printable --8-10000000000-10000000000:87141 content-type: text/html; charset=utf-8 content-transfer-encoding: quoted-printable --8-10000000000-10000000000:87141--
this original body:
mime-version: 1.0 content-type: multipart/alternative; boundary="8-10000000000-10000000000:87141" --8-10000000000-10000000000:87141 content-type: text/plain; charset=utf-8 content-transfer-encoding: quoted-printable =0a=0a=0a=0a notification=0a=0a =0a new post added in:=0a= =09igcbp11 europe 123=0a=0a =0a=09=09test 4 - exchange server header=0a= =0a=09=09=0a=09this test mail. should html/text formated via quote= d-printable encoding.=0a=0a =0a=09=09author: branislav kurbalija=0a=0a= =09reply online=0a=09=0a=0a=09=0a=09=09to alter business relationship properties or= =0a=09=09password go preferences=0a=09=0a=09=09www.diplomacy.edu=0a=09= =0a=0a =0a=09=09=09=09=09=0a=09this=0a=09is automatically generated e-m= ail notification.please not=0a=09respond e-mail message = not read.=09=09=09=09=0a =0a=0a=0a --8-10000000000-10000000000:87141 content-type: text/html; charset=utf-8 content-transfer-encoding: quoted-printable =0a<center>=0a=0a<div style=3d"font-family: arial, sans-serif; font-size: 1= 4px; width:=0a 600px; border: 1px solid #666666; color: #333333;=0a text-= align: left; border-radius: 2px;">=0a <div style=3d"background-color:= #008191; color: #ffffff; height: 15px;=0a padding: 20px; border-bottom: 1p= x solid #666666; margin-bottom: 5px;">notification</div>=0a=0a <div style= =3d"padding: 20px;">=0a new post added in:<br>=0a=09<a href=3d"ht= tp://wsrv05.diplomacy.edu/textus22/?class=3d1#87">igcbp11 europe 123</a><br= >=0a=0a <div style=3d"font-weight: bold; margin: 20px 0px 10px 0px;">=0a= =09=09test 4 - exchange server header</div>=0a=0a=09=09<p>=0a=09this is<str= ong> test mail</strong>. should <span style=3d"background-color:yello= w;">html/text</span> formated via quoted-printable encoding.</p>=0a=0a <= div style=3d"color: #525252; margin-top: 10px; text-align: right;">=0a=09= =09author: branislav kurbalija</div>=0a=0a=09<a href=3d"http://wsrv05.diplo= macy.edu/textus22/?class=3d1#87">reply online</a>=0a=09<hr>=0a=0a=09<div st= yle=3d"font-size: 11px; float: left;">=0a=09=09to alter business relationship prope= rties or=0a=09=09password go <a href=3d"http://wsrv05.diplomacy.edu/text= us22/cantina/profile.php?user=3d941&class=3d1">preferences</a></div>=0a=09<= div style=3d"font-size: 11px; float: right;">=0a=09=09<a href=3d"http://www= .diplomacy.edu/">www.diplomacy.edu</a>=0a=09</div>=0a=0a </div>=0a=09=09= =09=09=09=0a=09<div style=3d"font-size: 11px; background-color:#eee; height= : 24px;=0a=09 padding: 7px; margin-top: 20px; border-top: 1px solid #66666= 6; text-align: center;">this=0a=09is automatically generated e-mail noti= fication.<br>please not=0a=09respond e-mail message not = read.</div>=09=09=09=09=0a =0a</div>=0a</center>=0a --8-10000000000-10000000000:87141--
there issue quoted_printable_encode()
, ms outlook (see https://github.com/php/php-src/pull/120). have upgrade php or implement quoted-printable yourself, or utilize base64 instead.
php email postfix-mta exchange-server quoted-printable
No comments:
Post a Comment