Okay, I just tried it from the Command Window in VFP6 with Outlook XP. However, I changed your HTML to look like this:
<HTML><BODY><H2>This is the header.</H2><BR>This is a test.</BODY></HTML>
It came through with no problem.
Phillip
>Mark thanks for the code. I tried it but it did not work, I got the same thing (the HTML code and not the HTML format).
>
>One thing I did that worked was to install Outlook 2000 in another computer and now it's working. So it seems that the "oMail.htmlbody" command does not work with Outlook XP.
>
>What do you think?
>
>Louis
"D'OH!" --Homer Simpson