METHODS

See METHODS in Mail::Reporter

Constructors

$class->new( %options )
Option Defined in Default

executable

Mail::Transport

undef

hostname

Mail::Transport

'localhost'

interval

Mail::Transport

30

log

Mail::Reporter

'WARNINGS'

password

Mail::Transport

undef

port

Mail::Transport

undef

proxy

Mail::Transport

undef

retry

Mail::Transport

<false>

style

<autodetect>

timeout

Mail::Transport

120

trace

Mail::Reporter

'WARNINGS'

username

Mail::Transport

undef

via

Mail::Transport

'mailx'

executable => FILENAME
hostname => HOSTNAME|ARRAY
interval => SECONDS
log => LEVEL
password => STRING
port => INTEGER
proxy => PATH
retry => NUMBER|undef
style => 'BSD'|'RFC822'
There are two version of the mail program. The newest accepts RFC822 messages, and automagically collect information about where the message is to be send to. The BSD style mail command predates MIME, and expects lines which start with a '~' (tilde) to specify destinations and such. This field is autodetect, however on some platforms both versions of mail can live (like various Linux distributions).
timeout => SECONDS
trace => LEVEL
username => STRING
via => CLASS|NAME

Sending mail

$obj->destinations( $message, [$address|ARRAY] )
See destinations in Mail::Transport::Send.
$obj->putContent( $message, $fh, %options )
See putContent in Mail::Transport::Send.
$obj->send( $message, %options )
See send in Mail::Transport::Send.
$obj->trySend( $message, %options )
» Error: Sending via mailx mailer $program failed: $! ($?)

Mailx (in some shape: there are many different implementations) did start accepting messages, but did not succeed sending it.

Server connection

$obj->findBinary( $name, [@directories] )
See findBinary in Mail::Transport.
$obj->remoteHost
See remoteHost in Mail::Transport.
$obj->retry
See retry in Mail::Transport.

Error handling

$obj->AUTOLOAD
See AUTOLOAD in Mail::Reporter.
$obj->addReport( $object )
See addReport in Mail::Reporter.
$obj->defaultTrace( [$level]|[$loglevel, $tracelevel]|[$level, $callback] )
$class->defaultTrace( [$level]|[$loglevel, $tracelevel]|[$level, $callback] )
See defaultTrace in Mail::Reporter.
$obj->errors
See errors in Mail::Reporter.
$obj->log( [$level, [$strings]] )
$class->log( [$level, [$strings]] )
See log in Mail::Reporter.
$obj->logPriority( $level )
$class->logPriority( $level )
See logPriority in Mail::Reporter.
$obj->logSettings
See logSettings in Mail::Reporter.
$obj->notImplemented
See notImplemented in Mail::Reporter.
$obj->report( [$level] )
See report in Mail::Reporter.
$obj->reportAll( [$level] )
See reportAll in Mail::Reporter.
$obj->trace( [$level] )
See trace in Mail::Reporter.
$obj->warnings
See warnings in Mail::Reporter.

Cleanup

$obj->DESTROY
See DESTROY in Mail::Reporter.