1Email::Sender(3)      User Contributed Perl Documentation     Email::Sender(3)
2
3
4

NAME

6       Email::Sender - a library for sending email
7

VERSION

9       version 1.300031
10

SYNOPSIS

12         my $message = Email::MIME->create( ... );
13         # produce an Email::Abstract compatible message object,
14         # e.g. produced by Email::Simple, Email::MIME, Email::Stuff
15
16         use Email::Sender::Simple qw(sendmail);
17         use Email::Sender::Transport::SMTP qw();
18         use Try::Tiny;
19
20         try {
21           sendmail(
22             $message,
23             {
24               from => $SMTP_ENVELOPE_FROM_ADDRESS,
25               transport => Email::Sender::Transport::SMTP->new({
26                   host => $SMTP_HOSTNAME,
27                   port => $SMTP_PORT,
28               })
29             }
30           );
31         } catch {
32             warn "sending failed: $_";
33         };
34

OVERVIEW

36       Email::Sender replaces the old and sometimes problematic Email::Send
37       library, which did a decent job at handling very simple email sending
38       tasks, but was not suitable for serious use, for a variety of reasons.
39
40       Most users will be able to use Email::Sender::Simple to send mail.
41       Users with more specific needs should look at the available
42       Email::Sender::Transport classes.
43
44       Documentation may be found in Email::Sender::Manual, and new users
45       should start with Email::Sender::Manual::QuickStart.
46

IMPLEMENTING

48       Email::Sender itself is a Moo role.  Any class that implements
49       Email::Sender is required to provide a method called "send".  This
50       method should accept any input that can be understood by
51       Email::Abstract, followed by a hashref containing "to" and "from"
52       arguments to be used as the envelope.  The method should return an
53       Email::Sender::Success object on success or throw an
54       Email::Sender::Failure on failure.
55

AUTHOR

57       Ricardo Signes <rjbs@cpan.org>
58

CONTRIBUTORS

60       ·   Alex Efros <powerman@powerman.name>
61
62       ·   Aristotle Pagaltzis <pagaltzis@gmx.de>
63
64       ·   Christian Walde <walde.christian@googlemail.com>
65
66       ·   David Golden <dagolden@cpan.org>
67
68       ·   David Steinbrunner <dsteinbrunner@pobox.com>
69
70       ·   Hans Dieter Pearcey <hdp@cpan.org>
71
72       ·   HIROSE Masaaki <hirose31@gmail.com>
73
74       ·   Justin Hunter <justin.d.hunter@gmail.com>
75
76       ·   Karen Etheridge <ether@cpan.org>
77
78       ·   Kenichi Ishigaki <ishigaki@cpan.org>
79
80       ·   kga <watrty@gmail.com>
81
82       ·   Kris Matthews <kris@tigerlms.com>
83
84       ·   William Blunn <zgpmax@cpan.org>
85
87       This software is copyright (c) 2017 by Ricardo Signes.
88
89       This is free software; you can redistribute it and/or modify it under
90       the same terms as the Perl 5 programming language system itself.
91
92
93
94perl v5.30.0                      2019-07-26                  Email::Sender(3)
Impressum