Saturday, May 04, 2013

sendemail: invalid SSL_version specified at /usr/share/perl5/IO/Socket/SSL.pm line 332


sudo aptitude install sendemail

sudo aptitude install libio-socket-ssl-perl

sendEmail -f xxx@gmail.com -t xxx@gmail.com -u Teste_Assunto -m Teste_Corpo -s smtp.gmail.com:587 -xu xxx_conta -xp xxx_senha -o tls=yes

if you have this error:
invalid SSL_version specified at /usr/share/perl5/IO/Socket/SSL.pm

The SSL_version is being coded as "SSLv3 TLSv1" and the regular expression is failing. I hacked it as a workaround as follows... change:
m{^(!?)(?:(SSL(?:v2|v3|v23|v2/3))|(TLSv1[12]?))$}i 
 to:
m{^(!?)(?:(SSL(?:v2|v3|v23|v2/3))|(TLSv1[12]?))}i

That did the trick for me.

No comments:

Post a Comment

Git get all remote branches

git branch -r \ | grep -v '\->' \ | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" \ | while read remote; do \ git branc...