extract eMail-body

display msg-body inside a 4D-webarea

Summary

Those little snippets of code sometimes are real timesaver. The timesaver of this week is a base html-page to display the message-body extracted by MSG_GetBody from the IC Downloaded Mail-theme of 4D Internet Commands


this is the raw HTML as used in $rawHTML

<html><head><title></title></head><body><pre>
<!–4DHTML messageBody–>
</pre></body></html>

and here the 4D-code to process the single 4D-tag
$rawHTML:=Get localized string(„htmlMsgBody“)
PROCESS 4D TAGS($rawHTML;$processedHTML)
WA SET PAGE CONTENT(*;$wa_DisplayMailBody;$processedHTML;““)

You should have a look at the DBZ_EmailDnD_Tester, to evaluate how to extract the message-body. Looks like this:

extract eMail-body
extract eMail-body

for further reading