0
Roland Smith Monday, 14 October 2019 10:29 AM UTC #1

What did you use for the Subject?

Try using a short (under 80 chars) subject using only Ascii characters.

 

0
John Vanleeuwe Monday, 14 October 2019 01:24 PM UTC #2

Hi Roland,

thanks for your suggestion/reply !

its higly appreciated!

 

ok the subject was larger than 80 characters. I respected the 80 limit , but still the same

 

From:

To: "support"

Subject: NCTS FL : 110089-FORTY-T1- - 19BE101000T7895582 - 19BE426279663055002

Date: Mon, 14 Oct 2019 15:22:17 +0200

Message-ID: A48462A5$EE85$11E9$C406$5307000@blanked

MIME-Version: 1.0

Content-Type: multipart/mixed;

 boundary="000_A48462A6-EE85-11E9-C406-53070B800000"

 

This is a multi-part message in MIME format.

--000_A48462A6-EE85-11E9-C406-53070B800000

Content-Type: text/plain;

                charset="iso-8859-1";format=flowed

X-Mailer: TopWiz PowerBuilder SMTP Object

Content-Transfer-Encoding: 7bit

 

document

 

--000_A48462A6-EE85-11E9-C406-53070B800000

Content-Type: application/pdf;

                name="FL-19BE101000T7895582.pdf"

Content-Transfer-Encoding: base64

Content-Disposition: attachment;

                filename="FL-19BE101000T7895582.pdf"

 

JVBERi0xLjUKJeTjz9IKNiAwIG9iago8PC9MZW5ndGggNSAwIFIvRmlsdGVyL0Zs

YXRlRGVjb2RlPj4Kc3RyZWFtCnicxVldb9y4FSXgN2+AZtfjZJN4AT0kG7vtyvwm

hfZp4dibIKhjx05cxH1qtwWKpHDz0h/RH9C/23MvSUkzI8ka73aLgS1eSiLPvSTP

/ZCsJH7nJ9uqot/nv23LOujqX5BfbUu+iT5laucr43wtbeW0qyGopja6+vzj9ttt

HXUdbRVkrG2sNB7DHWNX7/sQ6P1yX5Ow9L7Vte7djjHdVhhKxyoYQzeUVnzppjcA

BHghuFrG6tNAT5YJQPDVR5oS7yuMAsjG8zurPcaE2toi0zutiVIDRpP0BmzlafRG

Ab1D21fKZvDfZxvys2xXWUWr6kbznP/cVrWUykR+qLS1CvRA42oVG1v9+VO3EN9f

bB8eh6qpG19d/JX7L/6y/WFffCGuP4t7Yks8E6/FywMV98VL8YO4RM+pOML/N5DO

xHvcPcd1C9czccXyqfjh4E8Xr7ZfXGyfsdbQpWeXFcCybhqnlGFErUCLRiuPneH0

DMT74inmJwSn4gbIvjm4+PsGAILUsQXAgoL1YXIVaaHdLATfsiXewQZHrV3ewTI3

4o/ZVle4npJ9uP8E12LNEzx9hdbZ5tgjdmWLnQWtdG2riEPmY7MEHW

 

 

TIA

John

 

0
Roland Smith Monday, 14 October 2019 01:43 PM UTC #3

This is a strange issue, not sure what would cause it. There is definitely a bug in the code that breaks out long subject lines.

What happens if there is no attachment?

 

You could try using this instead:

http://www.topwizprogramming.com/pbnismtp.html

 

0
Roland Smith Monday, 14 October 2019 01:45 PM UTC #4

Another idea, try taking the dashes out of the subject line and see if that helps.

0
Roland Smith Monday, 14 October 2019 05:49 PM UTC #5

The seemingly random characters at the end is the attachment converted to Base64 text. That is how email attachments are sent.

Run it in debug mode with a stop in the of_databody function. The string returned at the end should end with a period separated by CRLF characters.

 

0
John Vanleeuwe Tuesday, 15 October 2019 11:49 AM UTC #6

Anyone got this working ?  We need an urgent solution :(

 

Any more idea's ? 

 

I have already tried limiting the subject line , with or without attachment , it still puts the whole email header into the subject of the mail.

 

TIA

John

0
Michael Kramer Tuesday, 15 October 2019 12:07 PM UTC #7

Hoi John, a shot from the hip: Do you run your app in an environment where regional settings has comma as decimal separator?

Such difference potentially invalidates the structure of the "package" so everything is thrown into the body.

Also, I see start of text references UTF-8: Do you have the right BOM sequence at start of text?

HTH /Michael