在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
sendEmail发送邮件是出现以下报错:
******************************************************************* Using the default of SSL_verify_mode of SSL_VERIFY_NONE for client
is deprecated! Please set SSL_verify_mode to SSL_VERIFY_PEER
together 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 /usr/bin/sendEmail line 1906.
invalid SSL_version specified at /usr/share/perl5/vendor_perl/IO/Socket/SSL .pm line 415.
sendEmail发邮件的时候,出现的报错,然后查阅了很多资料
在http://caspian.dotconf.net/menu/Software/SendEmail/ 上找到了 下面这段话
Q: I get the error "invalid SSL_version specified at /System/Library/Perl/Extras/5.16/IO/Socket/SSL.pm line 332.a on my Apple. What do I do?
centos7.2默认是 perl的版本是5.16,centos6.5的是5.10,后来把7的版本换成5.10,就可以正常发邮件了。
#### perl安装 wget http: //www .cpan.org /src/5 .0 /perl-5 .10.0. tar .gz
tar -zxf perl-5.10.0. tar .gz
cd perl-5.22.0
. /configure .gnu -des -Dprefix= /usr/local/perl
echo $?
make
make test
make install
mv /usr/bin/perl /usr/bin/perl .bak
ln -s /usr/local/perl/bin/perl /usr/bin/perl
perl - v
本文出自 “何全” 博客,请务必保留此出处http://hequan.blog.51cto.com/5701886/1811246
|
请发表评论