我試圖用perl發送電子郵件。我的代碼在linux上運行,沒有錯誤。 但當我在Windows Server 2008 r2上運行我的代碼時,perl sys:無法啓動TLS [Perl]
無法啓動TLS:不支持SSL版本SSLv3。
我的Perl代碼:
#!/usr/bin/perl
use Net::SMTP::TLS;
use 5.010;
my $mailer = new Net::SMTP::TLS(
'smtp.mail.yahoo.com',
Hello => 'smtp.mail.yahoo.com',
Port => 587,
User => '[email protected]',
Password=> 'password');
$mailer->mail('[email protected]');
$mailer->to('[email protected]');
$mailer->data();
$mailer->datasend("From: [email protected]\n");
$mailer->datasend("To: [email protected]\n");
$mailer->datasend("Subject: test&test\n");
$mailer->datasend("Content-type: text/html\n\n");
$mailer->datasend("\n");
$mailer->datasend"test test ste tset\n");
$mailer->dataend();
$mailer->quit;
也是我想: http://www.techieshelp.com/how-to-enable-ssl-3-0-server-2008-sbs-2008/
你能發佈在HKLM \ System \ CurrentControlSet \ Control \ SecurityProviders \ SCHANNEL \ Protocols \'下展開的所有鍵和子鍵的屏幕截圖嗎? – bentek