sendEmail使用TLS发送邮件

*******************************************************************
 Using the default of SSL_verify_mode of SSL_VERIFY_NONE for client
 is deprecated! Please set SSL_verify_mode to SSL_VERIFY_PEER
 possibly with SSL_ca_file|SSL_ca_path for verification.
 If you really don't want to verify the certificate and keep the
 connection open to Man-In-The-Middle attacks please set
 SSL_verify_mode explicitly to SSL_VERIFY_NONE in your application.
*******************************************************************
  at ./sendEmail.pl line 1906.
invalid SSL_version specified at /usr/share/perl5/vendor_perl/IO/Socket/SSL.pm line 444.
yum -y install perl-IO-Socket-SSL openssl-perl openssl-devel
修改 sendEmail 脚本:

第 1906 行,将 'SSLv3 TLSv1' 修改为 'SSLv23:!SSLv2':