Merge branch 'jk/send-email-ssl-errors' into maint
Improve error reporting when SMTP TLS fails. * jk/send-email-ssl-errors: send-email: enable SSL level 1 debug output
This commit is contained in:
commit
06b5c9304d
@ -1318,6 +1318,13 @@ Message-Id: $message_id
|
|||||||
require Net::SMTP::SSL;
|
require Net::SMTP::SSL;
|
||||||
$smtp_domain ||= maildomain();
|
$smtp_domain ||= maildomain();
|
||||||
require IO::Socket::SSL;
|
require IO::Socket::SSL;
|
||||||
|
|
||||||
|
# Suppress "variable accessed once" warning.
|
||||||
|
{
|
||||||
|
no warnings 'once';
|
||||||
|
$IO::Socket::SSL::DEBUG = 1;
|
||||||
|
}
|
||||||
|
|
||||||
# Net::SMTP::SSL->new() does not forward any SSL options
|
# Net::SMTP::SSL->new() does not forward any SSL options
|
||||||
IO::Socket::SSL::set_client_defaults(
|
IO::Socket::SSL::set_client_defaults(
|
||||||
ssl_verify_params());
|
ssl_verify_params());
|
||||||
|
Loading…
Reference in New Issue
Block a user