Subject: | Cannot send reports with Test/Reporter/Transport/Net/SMTP/TLS.pm |
Here is my .cpanreporter/config.ini
#######################################
edit_report=default:ask/no pass/na:no
email_from=thakore.kartik@gmail.com
send_report=default:ask/yes pass/na:yes
smtp_server=smtp.gmail.com
transport=Net::SMTP::TLS User thakore.kartik@gmail.com Password .......
Port 587
#################################################
I was getting this error:
CPAN::Reporter: Test result is 'pass', All tests successful.
CPAN::Reporter: preparing a CPAN Testers report for SDL-2.3_1
CPAN::Reporter: problem with Test::Reporter transport:
Test::Reporter: could not load 'Test::Reporter::Transport::Net::SMTP::TLS'
Attempt to reload Test/Reporter/Transport/Net/SMTP/TLS.pm aborted.
Compilation failed in require at (eval 158) line 1.
at /usr/local/share/perl/5.10.0/CPAN/Reporter.pm line 449
Test report will not be sent
KTHAKORE/SDL-2.3_1.tar.gz
Here is the patch I used to work around this :
#####################################################
449,450c449,450
< eval { $tr->transport( @transport_args ) };
< if ($@) {
---
Show quoted text
> $tr->transport( @transport_args );
Show quoted text> if ( 0 && $@) {
#####################################################