11-06-2006, 09:30 AM
Dir d; str sPath
str Sbj="My Subject
str Msg="My Message
str x="c:\smithdr\200609*.txt"
str y z
foreach(d x FE_Dir 0x4)
sPath=d.FileName(1)
y.from(y sPath "[;]"); err
z.from("''" y "''")
z.findreplace(";" "")
out z
SendMail "[email protected]" Sbj Msg 0 z "" "" "" "" "Denise"
As you can see, I used variables on subject, message and attachment. The code only works without the attachment.
The attachment string looks like this using out command:
If I copy and paste from the debugger window it works
