With OpenSSL module under openSUSE I can send an email using this list of commands
openssl s_client -starttls smtp -connect smtp.gmail.com:587 -crlf helo auth login (Put base64 encoded username) (Put base64 encoded password) mail from:<email> rcpt to:<email> Data From: email To: email1, email2, ..... Subject: (Message body goes here) .
Is it possible for such a list of commands to be executed at one shot? For example a script?
Note: There is an embedded-Linux system which contains the OpenSSL module, same thing will be applied to it.