msmtp Command Examples

An SMTP client. It reads text from stdin and sends it to an SMTP server. More information: https://marlam.de/msmtp.

echo "{{Hello world}}" | msmtp {{[email protected]}}

echo "{{Hello world}}" | msmtp --account={{account_name}} {{[email protected]}}

echo "{{Hello world}}" | msmtp --host={{localhost}} --port={{999}} --from={{[email protected]}} {{[email protected]}}