- Q: Is it possible to launch a batch file when file is dropped into a folder in order to send it out automatically to a list of recipients?
- A: It is a lot easier to solve the problem in another way.
Create batch file (on your desktop or elsewhere) and name it appropriately (for example, "Send Document.bat"). Batch file should contain the following lines:
@Echo off
rem Send email to list of recipients, after document file
rem is dropped on batch file.
febootimail -SMTP smtp.e-mailserver.com -FROM john@sender.com -TO joe@sender.com -BCC -USEFILE c:\myfiles\recipients.txt -ATTACH %1 -SUBJ Dropped document -TEXT Send dropped file from .bat file
rem Creating copy of dropped file in specified folder.
copy %1 "c:\myfiles\sent\"
rem NOTE...
rem This batch file works with only one file.
rem To send more files, add -ATTACH %2, -ATTACH %3, etc. Create text file with recipients email list, name it recipients.txt and place it into c:\myfiles\ (or alternatively, modify .bat file accordingly to use recipient mail list file with another name or from another location).
Now, when recipient list is provided and batch file is configured properly, just drag any document to batch file icon. The document will be sent out as attachment to recipients specified and just after copied to the folder specified.
Please do not hesitate to contact our support department with any possible further questions or to solve practical issues connected with Command line email. The solution will be provided shortly by e-mail and eventually added to FAQ.