Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using WestWind SMPT to send email
Message
De
29/08/2000 10:34:31
 
 
À
29/08/2000 10:19:55
Bob Smith
Custom Data Services, Inc.
Mansfield, Massachusetts, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00410242
Message ID:
00410255
Vues:
16
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform