Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send HTML Message - Revisited
Message
From
06/04/2003 16:40:03
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Send HTML Message - Revisited
Miscellaneous
Thread ID:
00774552
Message ID:
00774552
Views:
42
Hi all...

Now, I thought I had a problem on this in an earlier thread; but I didn't; but now I do. There was another thread here recently which was similar - but not quite. So, here is the problem:

I am sending email via outlook; VFP7 automation; standard text OR HTML. Each message is a preformatted 'template' created in notepad or an HTM generator. Each template is picked up line by line use low-level file functions and dumped into a table. As a use calls a 'template', a message body is created from the template table (with some substituting in of customer details). Then, the message is being sent. I am using just basic Outlook MAPI automation here and it appears to work fine.

But.....

Sending the plain text template is great: myMsg.Body = m.templatelines. Don't need more info on this.

Sending the HTML template looks great as well: myMsg.HTMLBody = m.templatelines. When I send the message, the correct message always appears in my sent items, with the HTML format.

When I send it to someone
within
my exchange, the message appears correctly. But, when I send the message to someone
outside
my exchange, the message is garbled (basically, non-formatted HTML you would see as if you were using notepad).

Does anyone have any suggestions on what I am doing wrong, VFP is doing wrong, or Outlook is doing wrong?

TIA

Ric
Next
Reply
Map
View

Click here to load this message in the networking platform