> call it like <cfset mybody = makeNiceEmail(mybody,70)>
>
> <cfscript>
> function makeNiceEmail(string, theLength) {
> CRLF=chr(13);
> for (i=theLength-1;i LTE Len(string);i=i+theLength){
> string = Insert(CRLF,string,i);
> }
> return string;
> }
> </cfscript>
CRLF chould be chr(13) & chr(10) shouldn't it?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists