2016-06-20 23:56:54 +01:00
|
|
|
# sendmail
|
|
|
|
|
2023-07-16 18:23:40 +01:00
|
|
|
> Send email.
|
meshlabserver, nkf, obs, pax, pdfimages, pinky, pssh, s, sd, sendmail, sftp: add link (#6971)
2021-10-17 05:23:56 +01:00
|
|
|
> More information: <https://manned.org/sendmail>.
|
2016-06-20 23:56:54 +01:00
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Send a message with the content of `message.txt` to the mail directory of local user `username`:
|
2016-06-20 23:56:54 +01:00
|
|
|
|
2020-02-08 18:56:05 +00:00
|
|
|
`sendmail {{username}} < {{message.txt}}`
|
2016-06-20 23:56:54 +01:00
|
|
|
|
2017-10-16 22:39:44 +01:00
|
|
|
- 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`:
|
2016-06-20 23:56:54 +01:00
|
|
|
|
2017-10-17 05:03:07 +01:00
|
|
|
`sendmail -f {{you@yourdomain.com}} {{test@gmail.com}} < {{message.txt}}`
|
2016-06-20 23:56:54 +01:00
|
|
|
|
2017-10-16 22:39:44 +01:00
|
|
|
- Send an email from you@yourdomain.com (assuming the mail server is configured for this) to test@gmail.com containing the file `file.zip`:
|
2016-06-20 23:56:54 +01:00
|
|
|
|
2017-10-17 05:03:07 +01:00
|
|
|
`sendmail -f {{you@yourdomain.com}} {{test@gmail.com}} < {{file.zip}}`
|