Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Include Generic Txt in Body of Email
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01554867
Message ID:
01554870
Vues:
61
>Hi.
>I have an application whcih Sends Emails.
>I am trying to devise a way of entering Generic text (With Html Tags) into the body of an Email. I also need a facility to change Some of the Data.
>E.g.
>Dear MR. BLOGGS
>Pleas find attached our details
>Please contact MARY SMYTH if you have any problems
>Best Regards,
>JIM BROWN
>
>Above Upper Cased stuff is taken from a file , but all other stuff will be standard (With BOlding, Underlining, Different Fonts etc).
>Currently , I have this in a Memo Field with 'XXXXXX' and 'YYYYYY' for the upper case and I do a replace For, but when I show the Memo field, or want to do some other mods, I am working in Raw HTML Tag format.
>
>I guess some sort of a HTML editor with a facility to replace Place Holders, whcih ideally the Customer on Site can maintain
>Any Ideas appreciated .
>regards,
>Gerard

What I have done in this case is create the body of email as a text with place holders for names, emails, etc. For example,
you can enclose the name MR.BLOGGS as [TO_PERSON] and MARY SMYTH as [CONTACT_PERSON]. Then using STRTRAN, at run time, the code replaces the place holder with a value from a field. It works for me.

HTH.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform