U
U
Username02018-05-08 10:24:23
Email
Username0, 2018-05-08 10:24:23

What can be used to send an email from the command line?

Hello.
There is an application that, by alert, can launch a third-party application with arguments. I want an email to be sent to the alert. Can you please tell me how to implement this functionality in a fully automatic mode under Windows?
Ps Thunderbird can't. Thank you.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Rsa97, 2018-05-08
@Rsa97

Blat - Windows Command Line SMTP Mailer

A
Artem @Jump, 2018-05-08
curated by the

There are many command line utilities for sending mail.
The simplest and most effective one is blat.
But there is one problem - all these utilities send mail in clear text, and now all bulk mail services work only through secure channels with encryption.
Therefore, it will not work to send mail using blat, it does not know how to use SSL
. But the free stunnel utility can do it.
As a result, we use stunnel to raise the encrypted channel to the server, and fetch letters with blat.
Here is a good description of how this is done, and in general, type blat + stunnel in Google.
It is also possible, in principle, to work from the command line with such mail programs as The Bat and Outlook, but this is more complicated and less functional.
If you are too lazy to build a construction from blat + stunnel, then you can look away - https://github.com/muquit/mailsend/releases/
Also a free console utility that can SSL out of the box, but I have not tried it yet, so I won’t tell you how good.

V
Vadim Choporov, 2018-05-08
@tolstyiii

Telnet send. Or PowerShell - more functional.

J
Jinglebens, 2018-05-08
@Jinglebens

Maybe something will work here:
https://www.raymond.cc/blog/sending-email-using-co...
I'm using postie.exe, but it doesn't seem to be available anymore.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question