>I am programatically creating a message to send in an email using the West Wind SMTP class to send the message ( there is no interface for the user to type in the message)
>I need to have carriage returns in the message but the chr(13)in the line of code below gets ignored
>
>loIP.cMessage = 'line1'+chr(13)+'line2'
>
>'line1line2' is the result
SMTP, like many Unix-derived protocols, expects a newline character to indicate the EOL (end of line), rather than just a carriage return. In the DOS/Windows world, that means either a CR/LF pair (carriage return/linefeed, or CHR(13)+CHR(10)), or in some cases, just the line feed (CHR(10)) character. This is system dependent; EOL protocols vary under diufferent OS, Mac or Unix ASCII files are likely to have just the LF character (CHR(10)) if pulled across as a binary file.