I have a small patch of code that is intended to send "statements" to a list extracted from a table. However, I seem to be missing something when inserting the variables from the table into the emailer. Can anyone help me with this? Thank you, Chris
Here is the code :
** This application will append two files into tables and use these
** tables to automatically send email to the recipients on the list.
** CM - Oct 8, 2001
clear all
close all
#DEFINE ccMAINPATH "s:\chris\jill"
#DEFINE ccNOTIFY_EMAIL "cmcdade@bcsmemphis.com"
wait wind "testing testing testing" timeout 3
public oEmailer
cd ccMAINPATH
oEmailer=createobject("emaildll.emailer"
******************
** Selection section **
set step on
use stmtlist excl
sele * from stmtlist right join asocemal on textfile==filename ;
wher !empty(textfile) ;
into curs temp
sele * from temp where left(dest,1) != "*" && deselects fax and print files
** send email from the temp file **
goto top
do while !EOF()
stmtfile=allt(textfile)
recipient=allt(dest)
**do emailnotify
**proc EmailNotify
? oEmailer.sendmail(recipient, ;
"Monthly Statement", "stmt attached", ;
stmtfile)
skip
enddo
Here is the code :
** This application will append two files into tables and use these
** tables to automatically send email to the recipients on the list.
** CM - Oct 8, 2001
clear all
close all
#DEFINE ccMAINPATH "s:\chris\jill"
#DEFINE ccNOTIFY_EMAIL "cmcdade@bcsmemphis.com"
wait wind "testing testing testing" timeout 3
public oEmailer
cd ccMAINPATH
oEmailer=createobject("emaildll.emailer"

******************
** Selection section **
set step on
use stmtlist excl
sele * from stmtlist right join asocemal on textfile==filename ;
wher !empty(textfile) ;
into curs temp
sele * from temp where left(dest,1) != "*" && deselects fax and print files
** send email from the temp file **
goto top
do while !EOF()
stmtfile=allt(textfile)
recipient=allt(dest)
**do emailnotify
**proc EmailNotify
? oEmailer.sendmail(recipient, ;
"Monthly Statement", "stmt attached", ;
stmtfile)
skip
enddo