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
five values:
(success, error code, error text, error location, quit success)
Success and quit success are booleans. The error code and -text are protocol specific codes and texts. The location tells where the problem occurred.
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.