Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending HTML mail messages
Message
From
13/10/2003 06:58:06
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Sending HTML mail messages
Miscellaneous
Thread ID:
00838026
Message ID:
00838026
Views:
61
Hi,

I got this sample code from message #611182:
oOutlookApp = createobject('outlook.application')
oMailItem = oOutlookApp.createitem(0)

with oMailItem
	.HTMLBody = "Here comes the HTML code"
	.subject = "Here comes the subject"
	.to = "myemail@myorg.com.br"
	.send()
endwith
When I try to run it I get an "OLE error code 0x80020006: unknown name" error in the line containing the ".HTMLBody = "Here comes the HTML code"". If I comment that line it works ok.

What am I missing?

TIA

Fernando
Next
Reply
Map
View

Click here to load this message in the networking platform