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