How to automate SSH login using password, if the destination server (e.g. home router modem) doesn’t support public-key cryptography authentication method?
The purpose of using such inconvenient approach is not for fun, but it’s because a string literal can be easily exposed by the strings command output!
So, here is the guideline I used to build mailsend with statically-linked OpenSSL library.
Mailsend is an open-source, console-based SMTP client which is great for sending authenticated email (via Microsoft Exchange or Gmail, for example) at command-line interface (CLI), shell script, scheduler, etc.
For people who want to automate Linux shell script or Windows batch file to send authenticated email (not by email relay method), you’ll love this open-source, command-line smtp email client.
Let’s use the fprintf() function to dump debugging info to error log file!
However, not C implementation includes a command processor for executing other program.