Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using WestWind SMPT to send email
Message
From
29/08/2000 10:34:31
 
 
To
29/08/2000 10:19:55
Bob Smith
Custom Data Services, Inc.
Mansfield, Massachusetts, United States
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00410242
Message ID:
00410255
Views:
17
>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform