# Easy HTML Ingasoft

**URL:** <https://clarionhub.com/t/easy-html-ingasoft/2630>\
**Category:** questions\
**Created:** [May 25, 2019, 1:58pm UTC](https://clarionhub.com/t/easy-html-ingasoft/2630 "2019-05-25T13:58:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pbouma](https://clarionhub.com/letter_avatar_proxy/v4/letter/p/d6d6ee/32.png) [@pbouma](https://clarionhub.com/u/pbouma)\
**Post date:** [May 25, 2019, 1:58pm UTC](https://clarionhub.com/t/easy-html-ingasoft/2630/1 "2019-05-25T13:58:31Z")

</div>

In the demo app Mailer - Procedure SendMessage:  
IF CDOMsg:UseHTML  
oMessage.SetAutoGenerateTextBody(CDOMsg:AutoGenTextBody)

```
html1.EncodeImages()
oMessage.SetHTMLBodyW(html1.DocumentHtmlW())

```

Suppose the first line in the message = ‘[a variable]’  
How can I change this [a variable] via StringTheory

```
st.SetValue(???? )
st.Replace([a variable])
??? = st.GetValue()

oHTMLBody &= oMessage.HTMLBodyPart()
oHTMLBody.SetCharset(CDOMsg:Charset)   

```

after this the message is sent

can someone shine some light ? I do not know what to fill in the ???

---

<div class="post-metadata">

**Author:** ![Mike\_Duglas](https://clarionhub.com/user_avatar/clarionhub.com/mike_duglas/32/1061_2.png) [@Mike\_Duglas](https://clarionhub.com/u/Mike_Duglas)\
**Post date:** [May 25, 2019, 3:07pm UTC](https://clarionhub.com/t/easy-html-ingasoft/2630/2 "2019-05-25T15:07:12Z")

</div>

Why StringTheory? EasyHtml has FindReplace methods.

---

<div class="post-metadata">

**Author:** ![pbouma](https://clarionhub.com/letter_avatar_proxy/v4/letter/p/d6d6ee/32.png) [@pbouma](https://clarionhub.com/u/pbouma)\
**Post date:** [May 25, 2019, 5:00pm UTC](https://clarionhub.com/t/easy-html-ingasoft/2630/3 "2019-05-25T17:00:22Z")

</div>

Thank you. Tried the help file that came with the template, but 😯  
How to use that ?

---

<div class="post-metadata">

**Author:** ![Mike\_Duglas](https://clarionhub.com/user_avatar/clarionhub.com/mike_duglas/32/1061_2.png) [@Mike\_Duglas](https://clarionhub.com/u/Mike_Duglas)\
**Post date:** [May 25, 2019, 5:18pm UTC](https://clarionhub.com/t/easy-html-ingasoft/2630/4 "2019-05-25T17:18:33Z")

</div>

just call appropriate method with a pattern ([a variable] in your terms) and a replacement string.

---

<div class="post-metadata">

**Author:** ![pbouma](https://clarionhub.com/letter_avatar_proxy/v4/letter/p/d6d6ee/32.png) [@pbouma](https://clarionhub.com/u/pbouma)\
**Post date:** [May 25, 2019, 7:40pm UTC](https://clarionhub.com/t/easy-html-ingasoft/2630/5 "2019-05-25T19:40:06Z")

</div>

Still not clear, is there a Find and a Replace or  
Findreplace(a variable)  
Findreplace(replacevalue) ?

---

<div class="post-metadata">

**Author:** ![Mike\_Duglas](https://clarionhub.com/user_avatar/clarionhub.com/mike_duglas/32/1061_2.png) [@Mike\_Duglas](https://clarionhub.com/u/Mike_Duglas)\
**Post date:** [May 25, 2019, 8:03pm UTC](https://clarionhub.com/t/easy-html-ingasoft/2630/6 "2019-05-25T20:03:30Z")

</div>

Search for “FindReplace” in inc file (this is easyhtmlex.inc) and see how those methods are declared.
