Различия
Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
system:scripts:sendmail [2015/11/10 11:07] – mirocow | system:scripts:sendmail [2024/05/01 11:34] (текущий) – mirocow | ||
---|---|---|---|
Строка 1: | Строка 1: | ||
- | {{tag> | + | {{tag> |
====== smtp-client.pl - Консольный клиент для отправки почты ====== | ====== smtp-client.pl - Консольный клиент для отправки почты ====== | ||
Строка 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 | + | $ cpan install YAML File::Type File:: |
- | $ cpan install | + | |
- | $ cpan install | + | |
- | $ cpan install | + | |
- | $ cpan install | + | |
- | $ cpan install | + | |
- | $ cpan install | + | |
- | $ cpan install | + | |
- | $ cpan install | + | |
==== Проверка ==== | ==== Проверка ==== | ||
Строка 32: | Строка 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=' | ||
+ | </ | ||
| | ||
| | ||
Строка 157: | Строка 154: | ||
Other options | Other options | ||
- | --verbose[=< | + | --verbose[=< |
--missing-modules-ok | --missing-modules-ok | ||
--version | --version | ||
Строка 167: | Строка 164: | ||
=== Connect failed: IO:: | === Connect failed: IO:: | ||
- | Даж при наличии явного флага -4 или --ipv4 при отсутствии соеденения будет выдаваться эта ошибка | + | Даже при наличии явного флага -4 или --ipv4 при отсутствии соеденения будет выдаваться эта ошибка |
+ | |||
+ | === Connect failed: IO:: | ||
+ | |||
+ | Данное сообщение выводится при невозможности установить соеденение с указанным IP в --server | ||
+ | |||
+ | ==== Ссылки ==== | ||
+ | |||
+ | {{topic> |