Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to send mail with Outlook Express from VFP5?
Message
From
10/05/2000 09:12:38
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00368025
Message ID:
00368054
Views:
17
>I used the mailto: referece and it work ok. The only problem I can see is that the body of the mail is messed up.
>
>I wrote this code for the body:
>"This is a test"+chr(13)+chr(13);
>"Thanks for testing!"
>
>It appears like this when I use Outlook:
>This is a test
>
>Thanks for testing!
>
>
>When I use Outlook Express it looks like this:
>This is a testThanks for testing!
>
>Without the linebreaks, any ideas why?
>

The newline character is CHR(10); I'd recommend using the CR/LF pair (CHR(13)+CHR(10)) to ensure it's handled properly. Relying on product-specific behavior is probably not the best practice in any case if you can't be certain exactly what will be encountered, and using mailto: will not give you a means to check what the current mail client is on the system. YMMV.
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