Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SMTP Settings
#7
Code:
Copy      Help
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:

Code:
Copy      Help
"c:\smithdr\20060901.txt[]c:\smithdr\20060903.txt[]c:\smithdr\20060904.txt[]"

If I copy and paste from the debugger window it works Confusedhock:


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)