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 1.300031
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.
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
48       A number of methods related to this attribute are provided:
49
50       ·   delivery_count
51
52       ·   clear_deliveries
53
54       ·   shift_deliveries
55

AUTHOR

57       Ricardo Signes <rjbs@cpan.org>
58
60       This software is copyright (c) 2017 by Ricardo Signes.
61
62       This is free software; you can redistribute it and/or modify it under
63       the same terms as the Perl 5 programming language system itself.
64
65
66
67perl v5.30.0                      2019-07-26 Email::Sender::Transport::Test(3)
Impressum