msmtp命令手册An SMTP client. It reads text from standard input and sends it to an SMTP server. More information: https://marlam.de/msmtp.
~/.msmtprc:echo "{{Hello world}}" | msmtp {{to@example.org}}
~/.msmtprc:echo "{{Hello world}}" | msmtp --account={{account_name}} {{to@example.org}}
~/.msmtprc file:echo "{{Hello world}}" | msmtp --host={{localhost}} --port={{999}} --from={{from@example.org}} {{to@example.org}}