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