Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A Message Problem...
Message
De
27/02/2003 20:05:56
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
A Message Problem...
Divers
Thread ID:
00759200
Message ID:
00759200
Vues:
52
Hi all...

In the first instance - we are doing some automated messages. They can be based on an HTML template, or a plain ASCII text template. Certain strings are replaced on the template with real values (e.g. mmmmDatemmmm = DATE()). Simplistic but it works. A template is an ASCII/HTML file, picked up line by line and loaded into a table. A free text box may be used instead of a template, just a plain ol' edit box.

So, here is the situation:

A. Sending HTML. Works great. omsg.HTMLBody = m.myHTMLtext. Right click on the message in Outlook, choose view source, and I can then see the HTML template. All okay.

B. Sending free text based on the edit box value, all is well. omsg.Body = myeditbox.Value. Right click on the message in Outlook, cannot choose view source - because we are just plain ol ASCII. All okay.


C. Sending the ASCII Text Template = Problem. omsg.Body = m.myASCIItext. After sending a message, when it is read, all of the line feeds and carraige returns are missing!! Right click on the message in Outlook, and I CAN choose view source (but, I am sending ASCII), and I can then see the message the way it was supposed to be read; with the line feeds and carraige returns in the right spot. So I must be doing something fundamentally wrong here in that my sending an ASCII file is not being interpreted (sp?) correctly by Outlook. Any suggestions?

TIA

Ric
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform