1. Bernard Fontaine
  2. PowerBuilder
  3. Wednesday, 29 June 2022 14:39 PM UTC

Hello,

I'm using the n_smtp tool to send mail via PB.

I experience a problem with the body of the mail cut after a certain number of characters.

It seems that the send function (of_send) cuts the text at a position.

Text before send :

<html><HEAD>=0D=0A<META=20name=3DGENERATOR=20content=3D"MSHTML=2011.00.10570.1001"></HEAD>=0D=0A<BODY><SPAN=20style=3D'FONT-SIZE:=2013px;=20FONT-FAMILY:=20"Arial",sans-serif'>&nbsp;=20=0D=0A<P=20style=3D'FONT-SIZE:=2015px;=20FONT-FAMILY:=20"Calibri",sans-serif;=20MARGIN:=200cm=200cm=208pt;=20LINE-HEIGHT:=20107%'><SPAN=20style=3D"FONT-SIZE:=2016px;=20BACKGROUND:=20white;=20COLOR:=20black;=20LINE-HEIGHT:=20107%"><FONT=20style=3D"BACKGROUND-COLOR:=20#ffffff"=20color=3D#000000=20size=3D2=20face=3DArial>Ch=E8re=20Madame,=20cher=20Monsieur,</FONT></SPAN></P></SPAN>=0D=0A<P=20style=3D'FONT-SIZE:=2015px;=20FONT-FAMILY:=20"Calibri",sans-serif;=20MARGIN:=200cm=20-10pt=200cm=200cm'><SPAN=20style=3D'FONT-SIZE:=2013px;=20FONT-FAMILY:=20"Arial",sans-serif'></SPAN>&nbsp;</P>=0D=0A<P=20style=3D'FONT-SIZE:=2015px;=20FONT-FAMILY:=20"Calibri",sans-serif;=20TEXT-ALIGN:=20justify;=20MARGIN:=200cm=20-10pt=200cm=200cm'><SPAN=20style=3D'FONT-SIZE:=2013px;=20FONT-FAMILY:=20"Arial",sans-serif'>Nous=20avons=20bien=20re=E7u=20votre=20commande=20et=20nous=20vous=20en=20remercions.=20Vous=20trouverez-ci-joint=20la=20confirmation=20de=20votre=20commande=20telle=20que=20nous=20l'avons=20enregistr=E9e.</SPAN></P>=0D=0A<P=20style=3D'FONT-SIZE:=2015px;=20FONT-FAMILY:=20"Calibri",sans-serif;=20TEXT-ALIGN:=20justify;=20MARGIN:=200cm=20-10pt=200cm=200cm'>&nbsp;</P>=0D=0A<P=20style=3D'FONT-SIZE:=2015px;=20FONT-FAMILY:=20"Calibri",sans-serif;=20TEXT-ALIGN:=20justify;=20MARGIN:=200cm=20-10pt=200cm=200cm'>Nous=20avons=20planifi=E9=20un=20transport=20internationnal=20normal=20et=20ce=20colis=20devrait=20vous=20=EAtre=20livr=E9=20=E0=20l'aeroport=20du=20Luxembourg=20pour=20jeudi=20ou=20vendredi=20au=20plus=20tard.</P>=0D=0A<P=20style=3D'FONT-SIZE:=2015px;=20FONT-FAMILY:=20"Calibri",sans-serif;=20TEXT-ALIGN:=20justify;=20MARGIN:=200cm=20-10pt=200cm=200cm'>&nbsp;</P>=0D=0A<P=20style=3D'FONT-SIZE:=2015px;=20FONT-FAMILY:=20"Calibri",sans-serif;=20TEXT-ALIGN:=20justify;=20MARGIN:=200cm=20-10pt=200cm=200cm'><SPAN=20style=3D'FONT-SIZE:=2013px;=20FONT-FAMILY:=20"Arial",sans-serif'>Nous=20restons=20=E0=20votre=20disposition=20pour=20toute=20information=20compl=E9mentaire.</SPAN></P>=0D=0A<P=20style=3D'FONT-SIZE:=2015px;=20FONT-FAMILY:=20"Calibri",sans-serif;=20TEXT-ALIGN:=20justify;=20MARGIN:=200cm=20-10pt=200cm=200cm'>&nbsp;</P>=0D=0A<P=20style=3D'FONT-SIZE:=2015px;=20FONT-FAMILY:=20"Calibri",sans-serif;=20TEXT-ALIGN:=20justify;=20MARGIN:=200cm=20-10pt=200cm=200cm'><SPAN=20style=3D'FONT-SIZE:=2013px;=20FONT-FAMILY:=20"Arial",sans-serif'>Cordialement,</SPAN></P>=0D=0A<P=20style=3D'FONT-SIZE:=2015px;=20FONT-FAMILY:=20"Calibri",sans-serif;=20TEXT-ALIGN:=20justify;=20MARGIN:=200cm=20-10pt=200cm=200cm'><SPAN=20style=3D'FONT-SIZE:=2013px;=20FONT-FAMILY:=20"Arial",sans-serif'></SPAN>&nbsp;</P>=0D=0A<P=20style=3D'FONT-SIZE:=2015px;=20FONT-FAMILY:=20"Calibri",sans-serif;=20TEXT-ALIGN:=20justify;=20MARGIN:=200cm=20-10pt=200cm=200cm'><SPAN=20style=3D'FONT-SIZE:=2013px;=20FONT-FAMILY:=20"Arial",sans-serif'></SPAN>&nbsp;</P>=0D=0A<P=20style=3D'FONT-SIZE:=2015px;=20FONT-FAMILY:=20"Calibri",sans-serif;=20MARGIN:=200cm=20-10pt=200cm=200cm'><SPAN=20style=3D'FONT-SIZE:=2013px;=20FONT-FAMILY:=20"Arial",sans-serif'>Anouchka=20GELGESSEN</SPAN></P></BODY></html>

 

Text after send (extracted from a mail via gmail) : 

<html><HEAD>
<META name=3DGENERATOR content=3D"MSHTML 11.00.10570.1001"></HEAD>
<BODY><SPAN style=3D'FONT-SIZE: 13px; FONT-FAMILY: "Arial",sans-serif'>&nbs=
p;=20
<P style=3D'FONT-SIZE: 15px; FONT-FAMILY: "Calibri",sans-serif; MARGIN: 0cm=
0cm 8pt; LINE-HEIGHT: 107%'><SPAN style=3D"FONT-SIZE: 16px; BACKGROUND: wh=
ite; COLOR: black; LINE-HEIGHT: 107%"><FONT style=3D"BACKGROUND-COLOR: #fff=
fff" color=3D#000000 size=3D2 face=3DArial>Ch=E8re Madame, cher Monsieur,</=
FONT></SPAN></P></SPAN>
<P style=3D'FONT-SIZE: 15px; FONT-FAMILY: "Calibri",sans-serif; MARGIN: 0cm=
-10pt 0cm 0cm'><SPAN style=3D'FONT-SIZE: 13px; FONT-FAMILY: "Arial",sans-s=
erif'></SPAN>&nbsp;</P>
<P style=3D'FONT-SIZE: 15px; FONT-FAMILY: "Calibri",sans-serif; TEXT-ALIGN:=
justify; MARGIN: 0cm -10pt 0cm 0cm'><SPAN style=3D'FONT-SIZE: 13px; FONT-F=
AMILY: "Arial",sans-serif'>Nous avons=20
bien re=E7u votre commande et nous vous en remercions. Vous trouverez-ci-j=
oint la confirmation de votre commande telle que nous l'avons enregistr=E9e=
.</SPAN></P>
<P style=3D'FONT-SIZE: 15px; FONT-FAMILY: "Calibri",sans-serif; TEXT-ALIGN:=
justify; MARGIN: 0cm -10pt 0cm 0cm'>&nbsp;</P>
<P style=3D'FONT-SIZE: 15px; FONT-FAMILY: "Calibri",sans-serif; TEXT-ALIGN:=
justify; MARGIN: 0cm -10pt 0cm 0cm'>Nous avons planifi=E9 un transport int=
ernationnal normal et ce colis devrait vous =EAtre livr=E9 =E0 l'aeroport d=
u Luxembourg pour jeudi ou vendredi au plus tard.</P>
<P style=3D'FONT-SIZE: 15px; FONT-FAMILY: "Calibri",sans-serif; TEXT-ALIGN:=
justify; MARGIN: 0cm -10pt 0cm 0cm'>&nbsp;</P>
<P style=3D'FONT-SIZE: 15px; FONT-FAMILY: "Calibri",sans-serif; TEXT-ALIGN:=
justify; MARGIN: 0cm -10pt 0cm 0cm'><S
PAN style=3D'FONT-SIZE: 13px; FONT-FAMILY: "Arial",sans-serif'>Nous reston=
s =E0 votre disposition pour toute information compl=E9mentaire.</SPAN></P>
<P style=3D'FONT-SIZE: 15px; FONT-FAMILY: "Calibri",sans-serif; TEXT-ALIGN:=
justify; MARGIN: 0cm -10pt 0cm 0cm'>&nbsp;</P>
<P style=3D'FONT-SIZE: 15px; FONT-FAMILY: "Calibri",sans-serif; TEXT-ALIGN:=
justify; MARGIN: 0cm -10pt 0cm 0cm'><SPAN style=3D'FONT-SIZE: 13px; FONT-F=
AMILY: "Arial",sans-serif'>Cordialement,</SPAN></P>
<P style=3D'FONT-SIZE: 15px; FONT-FAMILY: "Calibri",sans-serif; TEXT-ALIGN:=
justify; MARGIN: 0cm -10pt 0cm 0cm'><SPAN style=3D'FONT-SIZE: 13px; FONT-F=
AMILY: "Arial",sans-serif'></SPAN>&nbsp;</P>
<P style=3D'FONT-SIZE: 15px; FONT-FAMILY: "Calibri",sans-serif; TEXT-ALIGN:=
justify; MARGIN: 0cm -10pt 0cm 0cm'><SPAN style=3D'FONT-SIZE: 13px; FONT-F=
AMILY: "Arial",sans-s
erif'></SPAN>&nbsp;</P>
<P style=3D'FONT-SIZE: 15px; FONT-FAMILY: "Calibri",sans-serif; MARGIN: 0cm=
-10pt 0cm 0cm'><SPAN style=3D'FONT-SIZE: 13px; FONT-FAMILY: "Arial",sans-s=
erif'>Anouchka GELGESSEN</SPAN></P></BODY></html>

I red bolded the cut in the seond text.

I thought of cutting myself the text (and sending multiple short text instead of a big text) in order to avoid it being too big to be cutted.

Have you got a solution for this ?

 

Have a nice day,

 

Bernard

 

Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 29 June 2022 15:18 PM UTC
  2. PowerBuilder
  3. # 1

All emails sent via SMTP are cut into 40 character lines, that is part of the standard. The receiving app (Outlook, GMail) knows this and combines it all into a single string when displaying.

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.