1Email::Sender::TransporUts:e:rSMCToPn(t3r)ibuted Perl DoEcmuamieln:t:aSteinodner::Transport::SMTP(3)
2
3
4
6 Email::Sender::Transport::SMTP - send email over SMTP
7
9 version 1.300035
10
12 This transport is used to send email over SMTP, either with or without
13 secure sockets (SSL/TLS). It is one of the most complex transports
14 available, capable of partial success.
15
16 For a potentially more efficient version of this transport, see
17 Email::Sender::Transport::SMTP::Persistent.
18
20 The following attributes may be passed to the constructor:
21
22 "hosts": an arrayref of names of the host to try, in order; defaults to
23 a single element array containing "localhost"
24 The attribute "host" may be given, instead, which contains a single
25 hostname.
26
27 "ssl": if 'starttls', use STARTTLS; if 'ssl' (or 1), connect securely;
28 otherwise, no security
29 "ssl_options": passed to Net::SMTP constructor for 'ssl' connections or
30 to starttls for 'starttls' connections; should contain extra options
31 for IO::Socket::SSL
32 "port": port to connect to; defaults to 25 for non-SSL, 465 for 'ssl',
33 587 for 'starttls'
34 "timeout": maximum time in secs to wait for server; default is 120
35 "sasl_username": the username to use for auth; optional
36 "sasl_password": the password to use for auth; required if
37 "sasl_username" is provided
38 "allow_partial_success": if true, will send data even if some
39 recipients were rejected; defaults to false
40 "helo": what to say when saying HELO; no default
41 "localaddr": local address from which to connect
42 "localport": local port from which to connect
43 "debug": if true, put the Net::SMTP object in debug mode
44
46 If "allow_partial_success" was set when creating the transport, the
47 transport may return Email::Sender::Success::Partial objects. Consult
48 that module's documentation.
49
51 Ricardo Signes <rjbs@semiotic.systems>
52
54 This software is copyright (c) 2020 by Ricardo Signes.
55
56 This is free software; you can redistribute it and/or modify it under
57 the same terms as the Perl 5 programming language system itself.
58
59
60
61perl v5.32.1 2021-01-27 Email::Sender::Transport::SMTP(3)