Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending Mail Via Outlook - Revisited
Message
De
20/07/2001 10:17:07
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Sending Mail Via Outlook - Revisited
Divers
Thread ID:
00533122
Message ID:
00533122
Vues:
42
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 ?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform