need to add line break in email body text

511 views
Skip to first unread message

kosh...@gmail.com

unread,
Dec 7, 2023, 7:33:50 AM12/7/23
to Harbour Users
need to add line break in email body text
please suggest me way to break line in email body text 
chr(13) did not  worked 

Don Lowenstein

unread,
Dec 7, 2023, 8:03:47 AM12/7/23
to Harbour Users
Carriage Return + Line Feed
chr(13) + chr( 10)

From: harbou...@googlegroups.com <harbou...@googlegroups.com> on behalf of kosh...@gmail.com <kosh...@gmail.com>
Sent: Thursday, December 7, 2023 6:33 AM
To: Harbour Users <harbou...@googlegroups.com>
Subject: [harbour-users] need to add line break in email body text
 
need to add line break in email body text
please suggest me way to break line in email body text 
chr(13) did not  worked 

--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/a6d07937-9e46-4c76-aa74-4386a2015910n%40googlegroups.com.

Marek Olszewski "MOL"

unread,
Dec 8, 2023, 3:52:53 AM12/8/23
to Harbour Users
If your e-mail body is composed as a html, you should insert <br> to see  line break in message

kosh...@gmail.com

unread,
Dec 8, 2023, 5:09:39 AM12/8/23
to Harbour Users
no it is plain text message 

kosh...@gmail.com

unread,
Dec 8, 2023, 5:10:33 AM12/8/23
to Harbour Users
text after chr(13)+chr(10) disappered from email 

Tim Jacob

unread,
Dec 8, 2023, 8:27:28 AM12/8/23
to harbou...@googlegroups.com

Many (most?) emails today are in HTML.

Try replacing your chr(13) + chr(10) with <br />

"kosh...@gmail.com" <kosh...@gmail.com>: Dec 07 04:33AM -0800


need to add line break in email body text
please suggest me way to break line in email body text
chr(13) did not worked

You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to harbour-user...@googlegroups.com.

 

Shaji Thomas

unread,
Dec 29, 2023, 2:38:04 AM12/29/23
to Harbour Users
add hb_eol() at end of the line
eg : "some text" + hb_eol()

Andrzej P. Wozniak

unread,
Dec 30, 2023, 10:04:55 AM12/30/23
to harbou...@googlegroups.com
From: Shaji Thomas <shaj...@gmail.com>
Sent: Friday, December 29, 2023 8:38 AM

> add hb_eol() at end of the line
> eg : "some text" + hb_eol()

Wrong. It MUST be CRLF, separate CR or LF are not allowed.
Read the internet standard RFC 5322 for Internet Message Format:

/----
2.1. General Description
(...)
Messages are divided into lines of characters. A line is a series of
characters that is delimited with the two characters carriage-return
and line-feed; that is, the carriage return (CR) character (ASCII
value 13) followed immediately by the line feed (LF) character (ASCII
value 10). (The carriage return/line feed pair is usually written in
this document as "CRLF".)
(...)

2.3. Body
(...)
o CR and LF MUST only occur together as CRLF; they MUST NOT appear
independently in the body.
\----

Function hb_eol() generates OS-dependent result so it cannot be used for
internet messages (including email and nntp). What is more, some servers
may mark malformed messages as spam or just reject them without any
notification.

--
Regards from Poland
Andrzej P. Woźniak

Andrzej P. Wozniak

unread,
Dec 30, 2023, 11:40:09 AM12/30/23
to harbou...@googlegroups.com
From: 'Tim Jacob' via Harbour Users <harbou...@googlegroups.com>
Sent: Friday, December 08, 2023 2:27 PM

> Many (most?) emails today are in HTML.
> Try replacing your chr(13) + chr(10) with <br />

It won't help. There is a strict limit for line length in internet
messages.

Mike

unread,
Dec 30, 2023, 8:32:23 PM12/30/23
to harbou...@googlegroups.com
Why not use the old clipper style:
crlf = chr(13) +chr(10)
carrage return +lime feed
Then you could use:
? (your text) +crlf or
? crlf +(your text) or even
?? ... or even @x,y say ... +crlf
Yes the cr should be first otherwise if a lf is used first an eject my occur
first.
Reply all
Reply to author
Forward
0 new messages