In the next, small issue, I will tell you about an elementary, but quite useful script, with which you can send emails where it is not provided by third-party software, and the soul insists on asking.
Without long preludes, this is the script itself, and a few explanations to it:
The script uses the old, but, from no less useful object CDO.Message
The script allows you to send an e-mail to a given address, specify a return address, a letter subject, send a hidden copy, add an attachment as a file. All these parameters are passed to the script as arguments.
The description of the arguments and the usage example can be viewed by simply running the script, without any parameters. He will give a mini-help.
The mail server settings, when writing code, it was decided not to go anywhere outside. I considered that these are rarely changeable settings, and within the same environment they will be almost static. This is all set up right inside the script at the end of the code (there are necessary explanations there)
Using this script, you can solve a number of problems, for example, in our case it was:
sending packages of documents from 1C to counterparties (selection of documents - processing start, which a) prints to PDF, b) sends finished PDF by mail
sending mail after the weekly processing of our internal DBF database in the old software for access control (there we regularly need to build reports on the passage through the turnstiles, but they can only be made from the console and only printed. We create a report with a special team, print it in PDF and send it to the head SAT)
Sending notifications about the work of the backup, where there is no special software, all the backups are primitive and are made by self-written scripts
etc.
You can read more about CDO.Message and more advanced settings in the original source (links to the right), or search for examples on your own on the Internet
')
UPD: colleagues say that there are already ready, more functional utilities for such tasks, and that the article describes the next bike. Here is an example .