Различия
Показаны различия между двумя версиями страницы.
| Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
| system:scripts:sendmail [2016/05/25 12:42] – mirocow | system:scripts:sendmail [2024/05/01 11:34] (текущий) – mirocow | ||
|---|---|---|---|
| Строка 7: | Строка 7: | ||
| smtp-cli is a powerful SMTP command line client with a support for advanced features, such as STARTTLS, SMTP-AUTH, or IPv6 and with a scriptable message composition capabilities supporting anything from simple plain-text messages right up to building complex HTML emails with alternative plain-text part, attachments and inline images. The MIME-Type of the attachments can either be guessed automatically or alternatively set on the command line, separately for each attachment if required. | smtp-cli is a powerful SMTP command line client with a support for advanced features, such as STARTTLS, SMTP-AUTH, or IPv6 and with a scriptable message composition capabilities supporting anything from simple plain-text messages right up to building complex HTML emails with alternative plain-text part, attachments and inline images. The MIME-Type of the attachments can either be guessed automatically or alternatively set on the command line, separately for each attachment if required. | ||
| - | http://www.logix.cz/michal/devel/smtp-cli/ | + | * http://smtp-cli.logix.cz |
| + | * https://github.com/ | ||
| + | * http:// | ||
| ==== Установка ==== | ==== Установка ==== | ||
| Строка 14: | Строка 16: | ||
| $ cd ~ | $ cd ~ | ||
| - | $ wget http://www.logix.cz/michal/ | + | $ wget https://raw.githubusercontent.com/mludvig/smtp-cli/master/smtp-cli |
| - | $ mv smtp-cli-3.6 smtp-client.pl | + | $ mv smtp-cli smtp-client.pl |
| - | $ cpan install YAML File::Type File:: | + | $ cpan install YAML File::Type File:: |
| ==== Проверка ==== | ==== Проверка ==== | ||
| Строка 24: | Строка 26: | ||
| ==== Отправка письма ==== | ==== Отправка письма ==== | ||
| - | + | <code bash> | |
| - | perl smtp-client.pl --server=smtp.host.ru --from noreplay@myhost.ru --to=test@yandex.ru --subject=' | + | $ perl smtp-client.pl --server=localhost --from noreplay@myhost.ru --to=test@yandex.ru --subject=' |
| - | perl smtp-client.pl --server=smtp.gmail.com --port=465 --user=login --pass=888888 | + | $ perl smtp-client.pl --server=smtp.host.ru --from noreplay@myhost.ru --to=test@yandex.ru --subject=' |
| - | perl smtp-client.pl --subject=' | + | $ perl smtp-client.pl --server=smtp.gmail.com --port=465 --user=login --pass=888888 |
| - | perl smtp-client.pl --subject=' | + | $ perl smtp-client.pl --subject=' |
| + | $ perl smtp-client.pl --subject=' | ||
| + | $ perl smtp-client.pl --verbose --server=' | ||
| + | </ | ||
| | | ||
| | | ||
| Строка 159: | Строка 164: | ||
| === Connect failed: IO:: | === Connect failed: IO:: | ||
| - | Даж при наличии явного флага -4 или --ipv4 при отсутствии соеденения будет выдаваться эта ошибка | + | Даже при наличии явного флага -4 или --ipv4 при отсутствии соеденения будет выдаваться эта ошибка |
| + | |||
| + | === Connect failed: IO:: | ||
| + | |||
| + | Данное сообщение выводится при невозможности установить соеденение с указанным IP в --server | ||
| + | |||
| + | ==== Ссылки ==== | ||
| + | |||
| + | {{topic> | ||