1Test::Smoke::Mailer(3)User Contributed Perl DocumentationTest::Smoke::Mailer(3)
2
3
4
6 Test::Smoke::Mailer - Factory for objects to send the report.
7
9 use Test::Smoke::Mailer;
10
11 my %args = ( mhowto => 'smtp', mserver => 'smtp.your.domain' );
12 my $mailer = Test::Smoke::Mailer->new( $ddir, %args );
13
14 $mailer->mail or die "Problem in mailing: " . $mailer->error;
15
17 This little wrapper still allows you to use the sendmail, sendemail,
18 mail or mailx programs, but prefers to use the Mail::Sendmail module
19 (which comes with this distribution) to send the reports.
20
22 Test::Smoke::Mailer->new( $mailer[, %args] )
23 Can we provide sensible defaults for the mail stuff?
24
25 mhowto => [Module::Name|sendmail|mail|mailx|sendemail]
26 mserver => an SMTP server || localhost
27 mbin => the full path to the mail binary
28 mto => list of addresses (comma separated!)
29 mfrom => single address
30 mcc => list of addresses (coma separated!)
31
32 Test::Smoke::Mailer->config( $key[, $value] )
33 "config()" is an interface to the package lexical %CONFIG, which holds
34 all the default values for the "new()" arguments.
35
36 With the special key all_defaults this returns a reference to a hash
37 holding all the default values.
38
40 (c) 2002-2013, All rights reserved.
41
42 * Abe Timmerman <abeltje@cpan.org>
43
44 This library is free software; you can redistribute it and/or modify it
45 under the same terms as Perl itself.
46
47 See:
48
49 * <http://www.perl.com/perl/misc/Artistic.html>,
50 * <http://www.gnu.org/copyleft/gpl.html>
51
52 This program is distributed in the hope that it will be useful, but
53 WITHOUT ANY WARRANTY; without even the implied warranty of
54 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
55
56
57
58perl v5.34.0 2021-07-23 Test::Smoke::Mailer(3)