keepingbusy
Programmer
Hi all
I'm hoping this is the right forum for this question. We currently use part of the following to send some text and variables as an automated process which works fine:
I posted a thread (thread1251-1068328) recently regarding Mike Gagnon's FAQ1251-4969 which resolved an issue with his help and mspratt (another Mike).
Part of Mike's code is:
Ok. So here's the problem (at last!)
The memo field in a table MEMOFIELDNAME contains the HTML code that's created in FrontPage which the user copies and pastes into the memo field.
What I need to do is be able to insert the required variables or field names e.g. TRIM(transact) within the memo field so when the process starts the variable is recognised.
At the moment its shown like this:
Instead of:
Sorry for the long winded approach guys, but its difficult to explain otherwise and at least you can get an idea of whats already been done!
I look forward to any replies
Lee....
Visual FoxPro Versions: 6 & 9
Operating System: Windows XP
I'm hoping this is the right forum for this question. We currently use part of the following to send some text and variables as an automated process which works fine:
Code:
oitem.htmlbody="<HTML> ;
<H2>Order information</H2> ;
<BODY>Regarding your order Ref: <B>[ "+ ;
TRIM(transact)+" ]</B> which was received by us on <B>
"+cdow(daterecevd)+" "+dmy(daterecevd)+" ]</B> ;
<br><br>Thank you etc ;
</BODY> ;
</HTML>"
oitem.send
Part of Mike's code is:
Code:
With iMsg
.Configuration = iConf
.To = someone AT domain DOT com
.CC =
.BCC =
.From = ouraddress AT ourdomain DOT com
.Subject = test message
.HTMLBody = [b]MEMOFIELDNAME[/b]
.Send
Endwith
The memo field in a table MEMOFIELDNAME contains the HTML code that's created in FrontPage which the user copies and pastes into the memo field.
What I need to do is be able to insert the required variables or field names e.g. TRIM(transact) within the memo field so when the process starts the variable is recognised.
At the moment its shown like this:
Code:
Transaction number: [ "+TRIM(mtransact)+" ]
Code:
Transaction number: [ 1234567890ansact ]
I look forward to any replies
Lee....
Visual FoxPro Versions: 6 & 9
Operating System: Windows XP