Skip Menu |
 

This queue is for tickets about the Net-SMTP-TLS CPAN distribution.

Report information
The Basics
Id: 35606
Status: open
Priority: 0/
Queue: Net-SMTP-TLS

People
Owner: Nobody in particular
Requestors: mikaelb [...] df.lth.se
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Invalid conversion in sprintf: "%S"
Date: Sat, 03 May 2008 00:00:03 +0200
To: bug-Net-SMTP-TLS [...] rt.cpan.org
From: Mikael Bonnier <mikaelb [...] df.lth.se>
Download (untitled) / with headers
text/plain 712b
I got this error when using the example in Email::Send::SMTP::TLS: Invalid conversion in sprintf: "%S" at /usr/local/share/perl/5.8.8/Net/SMTP/TLS.pm line 254, <GEN0> line 13. Error sending email: Auth failed: 501 5.5.4 cannot BASE64 decode '%S' at /usr/local/share/perl/5.8.8/Email/Send/SMTP/TLS.pm line 45 This was fixed by changing %S to %s in the sprintf() call. Then it worked and I could send email. Version info: Net::SMTP::TLS version 0.12 Perl v5.8.8 built for i486-linux-gnu-thread-multi uname -a yields: Linux Empathy20080224 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686 GNU/Linux It's Kubuntu Hardy Heron. Regards, // Mikael Bonnier ---- // Web: http://www.df.lth.se/~mikaelb/
Subject: [rt.cpan.org #35606]
Date: Fri, 11 Jul 2014 12:34:35 -0700
To: bug-Net-SMTP-TLS [...] rt.cpan.org
From: Systems Administraor <sysadmin [...] dark-heart.net>
Download (untitled) / with headers
text/plain 548b
Here is a patch to resolve this bug: --- TLS.pm 2006-01-17 08:35:14.000000000 -0800 +++ /usr/local/share/perl/5.10.1/Net/SMTP/TLS.pm 2014-07-11 12:24:11.000000000 -0700 @@ -251,8 +251,8 @@ my $me = shift; my $user= $me->{User}; my $pass= $me->{Password}; - $me->_command(sprintf("AUTH PLAIN %S", - encode_base64("$user\0$user\0$pass",""))); + my $b64 = encode_base64("$user\0$user\0$pass",""); + $me->_command(sprintf("AUTH PLAIN %s", $b64)); my ($num,$txt) = $me->_response(); if(not $num == 235){ croak "Auth failed: $num $txt\n";


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.