Hello Lorenzo, Thursday, September 17, 2009, 4:44:04 PM, you wrote:
LF> In contrib/hbtip/sendmail.prg these lines: LF> IF !( Right( cBody, 2 ) == hb_osNewLine() ) LF> cBody += hb_osNewLine() LF> ENDIF LF> should be: LF> IF !( Right( cBody, 2 ) == Chr( 13 ) + Chr( 10 ) ) LF> cBody += Chr( 13 ) + Chr( 10 ) LF> ENDIF LF> the standard requires Cr+Lf and servers like QMail reject messages LF> with ONLY Lf reporting: LF> 451 See http://pobox.com/~djb/docs/smtplf.html LF> while others like Postfix accept them but report: LF> 354 End data with <CR><LF>.<CR><LF> LF> Using Chr( 13 ) + Chr( 10 ) seems to fix the send with QMail but LF> Postfix still reports 354 ... LF> Any comments is welcome. IMO, Regarding to RFC821 obsoleted by RFC 5321 it should be fixed to send always <CR><LF> http://www.rfc-editor.org/rfc/rfc821.txt http://www.rfc-editor.org/rfc/rfc5321.txt ".. Lines consist of zero or more data characters terminated by the sequence ASCII character "CR" (hex value 0D) followed immediately by ASCII character "LF" (hex value 0A). This termination sequence is denoted as <CRLF> in this document. Conforming implementations MUST NOT recognize or generate any other character or character sequence as a line terminator. .." -- Best regards, Jacek Kubica _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour