On Thu, 17 Sep 2009, Lorenzo Fiorini wrote: > In contrib/hbtip/sendmail.prg these lines: > > IF !( Right( cBody, 2 ) == hb_osNewLine() ) > cBody += hb_osNewLine() > ENDIF > > should be: > > IF !( Right( cBody, 2 ) == Chr( 13 ) + Chr( 10 ) ) > cBody += Chr( 13 ) + Chr( 10 ) > ENDIF
but this is stlill wrong. code says: cBody -> Optional. The body message of the email as text, or the filename of the HTML message to send. so, after that, you have to append crlf.crlf _no matter what is in cbody_ already. i think (from a quick skim of the code) that the correct solution would be deleting these three altogether, and the smtp client seems to already add this in it's commit(), which should be enough (and along these lines, appending anything to cbody is wrong). can you dump out a complete conversation, and get it to me? preferably protect it with something so that whitespaces and stuff are not mangled, base64, for example). > > the standard requires Cr+Lf and servers like QMail reject messages > with ONLY Lf reporting: > > 451 See http://pobox.com/~djb/docs/smtplf.html > > while others like Postfix accept them but report: > > 354 End data with <CR><LF>.<CR><LF> > > Using Chr( 13 ) + Chr( 10 ) seems to fix the send with QMail but > Postfix still reports 354 ... > > Any comments is welcome. > > best regards, > Lorenzo > _______________________________________________ > Harbour mailing list > [email protected] > http://lists.harbour-project.org/mailman/listinfo/harbour > -- [-] mkdir /nonexistent _______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
