1Email::Sender::TransporUts:e:rTeCsotn(t3r)ibuted Perl DoEcmuamieln:t:aSteinodner::Transport::Test(3)
2
3
4

NAME

6       Email::Sender::Transport::Test - deliver mail in memory for testing
7

VERSION

9       version 0.101760
10

DESCRIPTION

12       This transport is meant for testing email deliveries in memory.  It
13       will store a record of any delivery made so that they can be inspected
14       afterward.
15

ATTRIBUTES

17   deliveries
18       By default, the Test transport will not allow partial success and will
19       always succeed.  It can be made to fail predictably, however, if it is
20       extended and its "recipient_failure" or "delivery_failure" methods are
21       overridden.  These methods are called as follows:
22
23         $self->delivery_failure($email, $envelope);
24
25         $self->recipient_failure($to);
26
27       If they return true, the sending will fail.  If the transport was
28       created with a true "allow_partial_success" attribute, recipient
29       failures can cause partial success to be returned.
30
31       For more flexible failure modes, you can override more aggressively or
32       can use Email::Sender::Transport::Failable.
33
34       This attribute stores an arrayref of all the deliveries made via the
35       transport.  It can be emptied by calling "clear_deliveries".
36
37       Each delivery is a hashref, in the following format:
38
39         {
40           email     => $email,
41           envelope  => $envelope,
42           successes => \@ok_rcpts,
43           failures  => \@failures,
44         }
45
46       Both successful and failed deliveries are stored.
47

AUTHOR

49       Ricardo Signes <rjbs@cpan.org>
50
52       This software is copyright (c) 2010 by Ricardo Signes.
53
54       This is free software; you can redistribute it and/or modify it under
55       the same terms as the Perl 5 programming language system itself.
56
57
58
59perl v5.12.1                      2010-06-25 Email::Sender::Transport::Test(3)
Impressum