Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SMTP Settings
#13
Delete ,xAttach.from("''" xPath "''")

Use this to send multiple messages
Code:
Copy      Help
Dir d; str xPath
foreach(d "$my qm$\*.dat" FE_Dir 0x4)
,xPath=d.FileName(1)
,SendMail "myemail@home.com" "Files" "Attached" 0 xPath "" "" "" "" "QM"

or this to send single message with all files
Code:
Copy      Help
Dir d; str xAttach
foreach(d "$my qm$\*.dat" FE_Dir 0x4)
,xPath=d.FileName(1)
,xAttach.from(xAttach xPath "[]")
out xAttach
SendMail "myemail@home.com" "Files" "Attached" 0 xAttach "" "" "" "" "QM"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)