Test-Reporter-Transport-Legacy
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Test/Reporter/Transport/HTTPGateway.pm view on Meta::CPAN
our @ISA = qw/Test::Reporter::Transport/;
use LWP::UserAgent;
sub new {
my ($class, $url, $key) = @_;
die "invalid gateway URL: must be absolute http or https URL"
unless $url =~ /\Ahttps?:/i;
bless { gateway => $url, key => $key } => $class;
}
sub send {
my ($self, $report) = @_;
# construct the "via"
my $report_class = ref $report;
my $report_version = $report->VERSION;
my $via = "$report_class $report_version";
$via .= ', via ' . $report->via if $report->via;
lib/Test/Reporter/Transport/Mail/Send.pm view on Meta::CPAN
package Test::Reporter::Transport::Mail::Send;
our $VERSION = '1.59'; # VERSION
use Test::Reporter::Transport 1.58;
our @ISA = qw/Test::Reporter::Transport/;
use Mail::Send;
sub new {
my ($class, @args) = @_;
bless { args => \@args } => $class;
}
sub send {
my ($self, $report, $recipients) = @_;
$recipients ||= [];
my $perl_version = $report->perl_version->{_version};
my $via = $report->via();
my $msg = Mail::Send->new();
lib/Test/Reporter/Transport/Net/SMTP.pm view on Meta::CPAN
package Test::Reporter::Transport::Net::SMTP;
our $VERSION = '1.59'; # VERSION
use Test::Reporter::Transport 1.58;
our @ISA = qw/Test::Reporter::Transport/;
use Net::SMTP;
sub new {
my ($class, @args) = @_;
bless { args => \@args } => $class;
}
sub _net_class {
my ($self) = @_;
my $class = ref $self ? ref $self : $self;
my ($net_class) = ($class =~ /^Test::Reporter::Transport::(.+)\z/);
return $net_class;
}
# Next two subs courtesy of Casey West, Ricardo SIGNES, and Email::Date
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.408 second using v1.00-cache-2.02-grep-82fe00e-cpan-9e6bc14194b )