How to automate SSH login using password, if the destination server (e.g. home router modem) doesn’t support public-key cryptography authentication method?
Instead of simply using string literal to hardcode SMTP password in the mailsend source code, I use string array to store the credential character by character.
It’s easy to compile mailsend for Raspberry Pi/Raspbian, but it took me few days to figure out how to make a static build of mailsend.exe for Windows platform, from modified source code that hardcodes the SMTP credential and recipients.
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 via SMTP relay method), you’ll love this open-source, command-line SMTP email client.
There is a Linux program called banner that generates ASCII art from any text feeding to it.
Just realize that the system() function is not highly portable, so it is not ideal for writing info to file for debugging or logging purpose (like what I’ve done when debugging the DB2 external scalar function).