sendmail
Send email from the command-line.
- Send a message with the content of `message.txt` to the mail directory of local user `username`:
sendmail {username} < {message.txt}
- Send an email from you@yourdomain.com (assuming the mail server is configured for this) to test@gmail.com containing the message in `message.txt`:
sendmail -f {you@yourdomain.com} {test@gmail.com} < {message.txt}
- Send an email from you@yourdomain.com (assuming the mail server is configured for this) to test@gmail.com containing the file `file.zip`:
sendmail -f {you@yourdomain.com} {test@gmail.com} < {file.zip}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).