//------------------------------------------------ /* eMailSend() test //------------------------------------------------ dim str fileList(256):// ()内は扱える最大ファイル数 int cnt // ここをpng->jpegと変更してテスト cnt=files(fileList,"","png",YES,FILES_FILE) if isLocalizeJapan() then { print "該当ファイル数=";cnt } else { print "Corresponding file number=";cnt } int i for i=0 to cnt-1 print i;":";fileList(i) next // (1)添付なし if isLocalizeJapan() then { print "(1)添付なし" emailSend("件名1","本文1") } else { print "(1)no attachment" emailSend("subject1","body1") } //hitKey() // (2)そのまま添付 if isLocalizeJapan() then { print "(2)そのまま添付" emailSend("件名2","本文2(添付付き)",fileList,3) } else { print "(2)attach each file" emailSend("subject2","body2(with attachment)",fileList,3) } //hitKey() // (3)zip圧縮添付 if isLocalizeJapan() then { print "(3)zip圧縮添付" emailSend("件名3","本文3(zip添付付き)",fileList,10,"testzip.zip") } else { print "(3)attach with zip archive" emailSend("subject3","body3(zip archive)",fileList,10,"testzip.zip") } if isLocalizeJapan() then { print "全送信終了" } else { print "All send finish." } //------------------------------------------------ end //------------------------------------------------ func hitKey() str exit$ if isLocalizeJapan() then { exit$="次へ" } else { exit$="To Next" } setFunctionKey(0,exit$,'!') displayFunctionKey(YES,0,0) while inkey()=0 endwhile cls() displayFunctionKey(NO,0,0) endfunc
Zipファイル :XBtests.zip
0 件のコメント:
コメントを投稿