2025-03-14 21:59:59 -06:00
# sendmail
> Send email.
> More information: <https://manned.org/sendmail>.
- Send a message with the content of `message.txt` to the mail directory of local user `username` :
2025-12-16 10:20:31 -07:00
`sendmail < {{message.txt}} {{username}}`
2025-03-14 21:59:59 -06:00
2025-12-16 10:20:31 -07:00
- Send an email from `sender@example.com` (assuming the mail server is configured for this) to `receiver@example.com` containing the message in `message.txt` :
2025-03-14 21:59:59 -06:00
2025-12-16 10:20:31 -07:00
`sendmail < message.txt -f sender@example.com receiver@example.com`
2025-03-14 21:59:59 -06:00
2025-12-16 10:20:31 -07:00
- Send an email from `sender@example.com` (assuming the mail server is configured for this) to `receiver@example.com` containing the file `file.zip` :
2025-03-14 21:59:59 -06:00
2025-12-16 10:20:31 -07:00
`sendmail < file.zip -f sender@example.com receiver@example.com`