This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
утилита_curl [2026/04/01 11:21] val |
утилита_curl [2026/04/01 12:19] (current) val [Протокол SMTP] |
||
|---|---|---|---|
| Line 44: | Line 44: | ||
| * [[https://blog.ambor.com/2021/08/using-curl-to-send-e-mail-with.html|Using cURL to send an e-mail with an attachment]] | * [[https://blog.ambor.com/2021/08/using-curl-to-send-e-mail-with.html|Using cURL to send an e-mail with an attachment]] | ||
| * [[Использование библиотеки PAM#Использование pam_exec для регистрации подключений]] | * [[Использование библиотеки PAM#Использование pam_exec для регистрации подключений]] | ||
| + | * [[Коды завершения#Простая система мониторинга]] | ||
| <code> | <code> | ||
| - | (echo Subject: test;cat /etc/hosts) | curl smtp://gate.isp.un/ --mail-from user13@isp.un --mail-rcpt user13@isp.un --upload-file - | + | $ cat email.txt |
| + | </code><code> | ||
| + | Subject: test | ||
| + | |||
| + | Hello | ||
| + | World | ||
| + | </code><code> | ||
| + | $ curl -s smtp://gate.isp.un/ --mail-from userX@isp.un --mail-rcpt userX@isp.un --upload-file email.txt | ||
| </code> | </code> | ||