Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create an email from VFP
Message
 
 
To
24/09/2008 03:25:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01350117
Message ID:
01350128
Views:
53
This message has been marked as the solution to the initial question of the thread.
You've to URLENCODE() the body and/or subject if they include characters that are nor allowed in an URL. For new line characters you can use STRTRAN(). For more generic solution see How to escape a string for html in VFP8 Message #774940
        "&Body=" + STRTRAN(tcBody, CHR(13)+CHR(10), "%0d%0a") 
>I looking for way to create and display email.
>Currently I try to use way
>
>Local lcMail
>lcMail = "mailto:"+Alltrim(tcEmail) +;
>	"&Subject=Bestellung" +;
>        "&Body="+tcBody
>
>= ShellExecute(0, "open", lcMail, "", "", SW_SHOWNORMAL)
>
>
>The problem is - I can't use MULTILINE body (using CHR(13)+CHR(10)) - all text written in one line without carriage return.
>
>Any ideas?
>
>Thanks
>Denis
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform