Automatically email files from a folder
An invoice, scan or report is saved to a folder and goes straight out by e-mail to your accountant, a customer or an archive.
In short: Automatically emailing files means every new file in a folder is sent straight away as an attachment to set recipients through SMTP with TLS (Microsoft 365, Gmail or your own server), and each delivery is logged. UtilStudio is developing such a Windows service with the password stored encrypted. It is still in development.
This product is not on sale or available for download yet. We are checking whether businesses need it, and its scope may still change.
Key facts
| Platform | Windows 10 (22H2), Windows 11, Windows Server 2016 or later; runs as a Windows service |
|---|---|
| Formats | Any files as attachments, optionally zipped |
| Processing | Files are sent only through your own mail server (SMTP with TLS) |
| Planned licence | Paid add-on |
| Status | In development, not on sale or available for download yet |
| Developer | UtilStudio, s.r.o., Slovakia (EU), company ID 46620613 |
| Updated | 5 November 2026 |
Where the time goes
Writing an e-mail, attaching a file and sending it takes a moment, but with dozens of documents a month it adds up and things get forgotten. The action sends every file on its own and logs each delivery.
What the action should do
- Send through SMTP with TLS: Microsoft 365, Gmail or your own server
- Recipients, CC and subject with variables, such as Invoice {name}
- One file per e-mail or several at once, optionally zipped
- Attachment size limit with a warning when exceeded
- Mail server password stored encrypted
- Log every delivery and retry on server errors
Examples
- Send scanned supplier invoices to the accounting firm
- Send daily reports from a program to management
- Send service reports to the customer as soon as they are saved
How to do it today
- A PowerShell script. Microsoft marks Send-MailMessage as obsolete because it cannot guarantee secure connections, so libraries such as MailKit are used instead.
- Microsoft 365 is retiring password (Basic) authentication for SMTP AUTH, and Gmail requires an app password or OAuth, so older scripts stop working.
- Multifunction printers offer scan to e-mail, but only for their own scans.
How the program will work
- Runs in the background as a Windows service, even when nobody is signed in
- For each folder you set a file mask, such as *.pdf, and the actions to run
- Actions can be chained, for example convert to PDF/A, sign and send by e-mail
- Processed files are moved to an archive, failed ones are set aside with an error description
- Files are processed on your computer or network and are not uploaded anywhere unless that is the action’s purpose
Frequently asked questions
Does it work with Microsoft 365 and Gmail?
Yes, through SMTP. For accounts that require modern sign-in (OAuth), we plan to support it directly in the program.
Where is the e-mail password stored?
Encrypted on the computer where the program runs (Windows DPAPI). It is never shown in the settings again.
Can files go to different recipients by name?
Yes, with several rules using different masks, for example files named “ABC_*.pdf” to company ABC.
How do I automatically email a file when it is saved to a folder?
Use a program that watches the folder and sends each new file as an attachment through SMTP, such as a script using MailKit or a service that does it for you. Check that your mail server supports the sign-in method the program uses.
Why did my script that sends e-mail through Microsoft 365 stop working?
Microsoft is switching off password (Basic) authentication for SMTP AUTH. The script has to use OAuth or another supported sign-in method.