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 12:17] val [Протокол SMTP] |
утилита_curl [2026/07/27 16:02] (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> | ||
| $ cat email.txt | $ cat email.txt | ||
| </code><code> | </code><code> | ||
| - | Subject: test | + | Subject: Test Inet (ya.ru) |
| - | Hello | + | Not |
| - | World | + | Pass |
| </code><code> | </code><code> | ||
| - | $ curl -s smtp://gate.isp.un/ --mail-from userX@isp.un --mail-rcpt userX@isp.un --upload-file email.txt | + | $ while curl -s https://ya.ru >/dev/null; do sleep 600; done \ |
| + | curl -s smtp://gate.isp.un/ --mail-from userX@isp.un --mail-rcpt userX@isp.un --upload-file email.txt | ||
| </code> | </code> | ||