See METHODS in Mail::Reporter
Option | Defined in | Default |
---|---|---|
esmtp_options | {} | |
executable | Mail::Transport |
|
from |
| |
helo | <from Net::Config> | |
hostname | Mail::Transport | <from Net::Config> |
interval | Mail::Transport |
|
log | Mail::Reporter |
|
password | undef | |
port | Mail::Transport |
|
proxy | Mail::Transport | <from Net::Config> |
retry | Mail::Transport | <false> |
smtp_debug | <false> | |
timeout | 120 | |
trace | Mail::Reporter |
|
username | undef | |
via | Mail::Transport |
|
Try to send the $message once. This may fail, in which case this
method will return false
. In list context, the reason for failure
can be caught: in list context trySend
will return a list of
six values:
(success, rc, rc-text, error location, quit success, accept)
Success and quit success are booleans. The error code and -text are protocol specific codes and texts. The location tells where the problem occurred.
[3.003] the 'accept' returns the message of the manual dataend() instruction. Some servers may provide useful information in there, like an internal message registration id. For example, postfix may return "2.0.0 Ok: queued as 303EA380EE". You can only use this parameter when running local delivery (which is a smart choice anyway)
Option | Default |
---|---|
esmtp_options | {} |
from | < > |
to | [] |
Creates the connection to the SMTP server. When more than one hostname was specified, the first which accepts a connection is taken. An IO::Socket::INET object is returned.
Try to establish a connection to deliver SMTP to the specified $host. The
%options are passed to the new
method of Net::SMTP.