Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keeping returns in email
Message
 
 
To
23/03/2005 10:33:46
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00998431
Message ID:
00998438
Views:
54
This message has been marked as the solution to the initial question of the thread.
You have to urlencode CR and LF. See correction inline.

>I'm using the shellexecute to launch the email client and send the subject and body text.
>PARAMETERS lcSubject, lcMessagebody
>DECLARE INTEGER ShellExecute ;
>    IN SHELL32.DLL ;
>    INTEGER nWinHandle,;
>    STRING cOperation,;
>    STRING cFileName,;
>    STRING cParameters,;
>    STRING cDirectory,;
>    INTEGER nShowWindow
>
>lcEmailAddress = warapprove.altname
>
***
lcMessageBody = strtran(lcMessageBody, chr(13)+chr(10), "%0d%0a" 
***
>ShellExecute(0, "", "mailto:" + lcEmailAddress + "?Subject=" + lcSubject + ;
>                    "&body=" + lcMessageBody, "", "", 1)
>
>
>The only problem I'm having is that all the returns are stripped out of the body when the text comes into the email client. Any ideas on how to preserve the returns in the edit box when the text comes over to the email?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform