Oh, I see your point. But in my case (using TEXTMERGE to build the message) I think that I will always have a CRLF sequence.
>
>>But why wouldn't this work:
>>
>>
>>lcText = strtran( lcText, chr(13)+chr(10), "%0d%0a" )
>>
>
>Because it only converts a CRLF pair into a %0d%0a sequence. It won't convert a CR by itself, a LF by itself or a LFCR pair.