CLI/SMTPS.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 9 / 9 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« CLI/SMTP.pm ↑ Summary
1 package IO::Socket::CLI::SMTPS;
2  
3 =head1 NAME
4  
5 IO::Socket::CLI::SMTPS - Command-line interface to an SSL SMTP server.
6  
7 =head1 VERSION
8  
9 Version 0.04
10  
11 =head1 SYNOPSIS
12  
13 use IO::Socket::CLI::SMTPS;
14 my $smtp = IO::Socket::CLI::SMTPS->new(HOST => 'smtp.gmail.com');
15 $smtp->read();
16 do {
17 $smtp->prompt();
18 $smtp->read();
19 } while ($smtp->is_open());
20  
21 =head1 DESCRIPTION
22  
23 C<IO::Socket::CLI::SMTPS> provides a command-line interface to
24 L<IO::Socket::INET6> and L<IO::Socket::SSL>.
25  
26 =for comment
27 =head1 EXPORT
28 None by default.
29  
30 =cut
31  
32 =head1 METHODS
33  
34 See C<IO::Socket::CLI>.
35  
36 =cut
37  
38 1 ▶use IO::Socket::CLI;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 1 @ISA = ("IO::Socket::CLI");
40  
41 1 $IO::Socket::CLI::PORT = '465';
42 1 $IO::Socket::CLI::SSL = 1;
43 1 $IO::Socket::CLI::BYE = qr'^(?:221|421)(?: |\r?$)'; # string received when a SMTP server disconnects, i think something *must* follow the code
44  
45 =head1 BUGS
46  
47 Does not verify SSL connections. Has not been tried with STARTTLS.
48  
49 =head1 SUPPORT
50  
51 =over 2
52  
53 =item * CPAN Bug Tracker
54  
55 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=IO-Socket-CLI>
56  
57 =item * Code, Pull Requests, alternative Issues Tracker
58  
59 L<https://gitable.org/ashley/IO-Socket-CLI.git>
60  
61 =back
62  
63 =head1 COPYRIGHT AND LICENSE
64  
65 Copyright (C) 2012 by Ashley Willis E<lt>ashleyw@cpan.orgE<gt>
66  
67 This library is free software; you can redistribute it and/or modify
68 it under the same terms as Perl itself, either Perl version 5.12.4 or,
69 at your option, any later version of Perl 5 you may have available.
70  
71 =head1 SEE ALSO
72  
73 L<IO::Socket::CLI>, L<IO::Socket::INET6>, L<IO::Socket::INET>,
74 L<IO::Socket::SSL>, L<IO::Socket>
75  
76 =cut
77  
78 1 1;
« CLI/SMTP.pm ↑ Summary