Easy HTML Ingasoft


#1

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 ???


#2

Why StringTheory? EasyHtml has FindReplace methods.


#3

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


#4

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


#5

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


#6

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