Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to deal with this.. Big String on HTML to outlook
Message
From
26/08/2004 10:04:28
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
How to deal with this.. Big String on HTML to outlook
Miscellaneous
Thread ID:
00936589
Message ID:
00936589
Views:
42
Hi,

My goal is to send e-mail using a HTML report watched by user..

the len() of ThisForm.olehtml.document.Body.innerHTML is more than 2k of characters, and outlook is getting only part of it.. And the HMTL code is truncaded..
Declare INTEGER ShellExecute ;
    IN SHELL32.DLL ;
        INTEGER nWinHandle,;
        STRING cOperation,;
        STRING cFileName,;
        STRING cParameters,;
        STRING cDirectory,;
        INTEGER nShowWindow
if  used("cur_email")
    sele cur_email
    use
endif
SELE 0
CREAT CURSOR cur_email (ctipo C(1), lcMessageBody m)
append blank

cwTo           = ""
lcEmailAddress = cwTo
lcCCAddress    = ""
lcSubject      = "Report by " + allt(empresa.empresa)

repl lcMessageBody  with '<html>' + ThisForm.olehtml.document.Body.innerHTML+'</html>'

m.filehtm      = "resumo_pronto.htm"

ShellExecute(0, "", "mailto:" + lcEmailAddress + "?Subject=" + lcSubject + "&body=" + cur_email.lcMessageBody + "&cc=" + lcCCAddress, "", "", 1)
if  used("cur_email")
    sele cur_email
*    use
endif
Any advice will be welcome.. TIA

Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Next
Reply
Map
View

Click here to load this message in the networking platform