Does anybody on this planet know what the equivalent GNU mailutils
command to the following looks like?
Is this even possible without a local MTA with mailutils
?
Using s-nail
it works as intended.
s-nail -s "$subject" -S $smtp_server -r $from_user $to <<<$message
according to the GNU mailutils manual I tried:
mail --subject "$subject" \
--set smtp=$smtp_server \
--exec "set sendmail=smtp://$smtp_server" \
--append "From:$from_user" \
$to <<<$message
mail: Cannot open mailer: Input/output error
mail: cannot send message: Input/output error
this is not a duplicate of can-i-set-up-system-mail-to-use-an-external-smtp-server as they used a local MTA or heirloom-mailx or s-nail
or other tools. I am using Debian.
smtp://
url with your username/password in url, or your password will be sent in plain text without tls encryption. Use thesmtps://
url to secure your password. – gholk May 25 '23 at 12:20