Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create an email from VFP
Message
From
02/10/2008 08:40:01
 
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:
01352237
Views:
25
Spasibo, Sergey!


>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform