Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending Mail Via Outlook - Revisited
Message
From
20/07/2001 10:17:07
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Sending Mail Via Outlook - Revisited
Miscellaneous
Thread ID:
00533122
Message ID:
00533122
Views:
44
I have gone down this road before but as of yet am still unsuccessful. I am going to give it another try.

I am able to send HTML mail (using HTMLbody property) via Outlook within our company network in a very simple manner. Let me explain ...

I create a document with Microsoft Word and save it as an HTML document.

Then in VFP I use the following code to send it ...

release all like o*
oApp = createObject("Outlook.Application")
oMail = oApp.CreateItem(0)
oMail.recipients.add("someone@somewhere.com")

oMail.subject = "Mail Test"

oMail.HTMLbody = filetostr("test.htm")
oMail.send()
inkey(3)
release all like o*
return

It works like a charm.

However, when I send the same message outside of our building ....
It does not get delivered as HTML.

Am I the only one experiencing this problem or is this a universal problem ?

I have noticed that many of the emails I get from well recognized companies do not send HTML messages either. Is that because they too experience this difficulty. ??

Any thoughts from experienced emailers ?
Next
Reply
Map
View

Click here to load this message in the networking platform