What did you use for the Subject?
Try using a short (under 80 chars) subject using only Ascii characters.
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
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
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.
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
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