This is easy, use Dir statement to get the list of files, CD statement to change the current directory and then MailSendWithAttachment to send the message. Use the result of Dir for the attachment file parameter. Keep in mind, there is limit of no more than 255 files can be attached in one email message. If you have more files, zip them first using FileZip and then email resulting archive as a single file. : I'd like to know if 24x7 allowed me to mail with attacment all the content of : a specified directory ? : thanks !
|