NetTalk Central

Author Topic: NT V8.59 HTML Email not working.  (Read 2372 times)

Rob Kolanko

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
NT V8.59 HTML Email not working.
« on: August 11, 2015, 10:23:34 AM »
Hi Bruce,

The email procedure in my Net Talk web application now fails when sending an HTML email message. The same procedure work flawlessly in NT version 8.42.  The error message is "The remote Email (SMTP) server sent error = 451 See http://pobox.com/~djb/docs/smtplf.html. State = 77. " which is the "Bare LFs in SMTP "  error. 

I believe the routines used to create "Content-Transfer-Encoding: quoted-printable" message have been messed up during recent refactoring.

The raw HTML part of the email message from NT version 8.42 looked like:
Code: [Select]
----=_NextPart_001_d20150811t114100.62c1r871138
Content-Type: text/html;
charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<p><span style=3D"font-size: 10pt;"><span style=3D"background-color: #fffff=
f;">Self-assessment "<span style=3D"color: #000000;"> 000006-First Audit at=
 ACME TORONTO of EHS Auditor Demo Company</span>" has</span> been forwarded=
 to you for your response or review. If you are responding to the assessmen=
t, you will find a PDF copy of the self-assessment checklist attached to th=
is email. You can print this report for your assessment, if required.<br />=
</span></p>
<p><span style=3D"font-size: 10pt;"><a href=3D"http://YourURL" target=3D"_b=
lank">Click here</a> to log on to the Self-Assessment Module (SAM) to enter=
 your responses. <a href=3D"http://YourURL/help/SAM/enu/overview_and_workfl=
ow.html" target=3D"_blank">Click here</a> for assistance on using SAM.<br /=
></span></p>
<p><span style=3D"font-size: 8pt;">This message was automatically generated=
=2E Do not reply to this email.</span></p>

----=_NextPart_001_d20150811t114100.62c1r871138--

The raw message from NT Version 8.59 now looks like this:
Code: [Select]
----=_NextPart_001_d20150811t104133.32c1r308780
Content-Type: text/html;
 charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<p>Hello,</p>
<p>Self Assessment, " 002241-Sara's assessments at AAA CHEM=
I=
C=
A=
L=
S=
 =
o=
f=
 =
E=
H=
S=
 =
A=
... etc.

I think that line feeds are being pushed to the single character stream of the message which is causing the "Bare LFs in SMTP "  error. Please fix the "Content-Transfer-Encoding: quoted-printable" HTML message.

You can duplicate the message and error by compiling the "SEND" email example and entering the following into the "My HTML" field:
<p> HTML Message 1</p>
<p> HTML Message 2</p>
<p> HTML Message 3</p>
<p> HTML Message 4</p>
<p> HTML Message 5</p>

Thanks
Rob

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11197
    • View Profile
Re: NT V8.59 HTML Email not working.
« Reply #1 on: August 12, 2015, 11:14:51 PM »
Hi Rob,

sorry for the delay - I lost my C Drive yesterday.
the bug was in StringTheory - I've uploaded a new build, 2.35, to take care of it.
Thanks for the report.

cheers
Bruce