NAME

Mail::Transport::SMTP - transmit messages without external program

CLASS HIERARCHY

Mail::Transport::SMTP
is a Mail::Transport
is a Mail::Reporter

SYNOPSIS

my $sender = Mail::Transport::SMTP->new(...);
$sender->send($message);

DESCRIPTION

UNDER CONSTRUCTIONS. CANNOT BE USED YET. (Suggestions welcome)

This module implements transport of Mail::Message objects by negotiating to the destination host directly, without help of sendmail, mail, or other programs on the local host.

METHOD INDEX

The general methods for Mail::Transport::SMTP objects:

MR errors                            MR reportAll [LEVEL]
MR log [LEVEL [,STRINGS]]               send MESSAGE, OPTIONS
   new OPTIONS                       MR trace [LEVEL]
MR report [LEVEL]                    MT trySend MESSAGE, OPTIONS

The extra methods for extension writers:

MR AUTOLOAD                          MR inGlobalDestruction
MR DESTROY                           MR logPriority LEVEL
   contactServer                     MR logSettings
MT findBinary NAME [, DIRECTOR...    MR notImplemented

Methods prefixed with an abbreviation are described in the following manual-pages:

MR = L<Mail::Reporter>
MT = L<Mail::Transport>

METHODS

new OPTIONS
OPTION       DESCRIBED IN           DEFAULT
helo_domain  Mail::Transport::SMTP  <from Net::Config>
log          Mail::Reporter         'WARNINGS'
port         Mail::Transport::SMTP  'smtp(25)'
proxy        Mail::Transport::STMP  <from Net::Config>
timeout      Mail::Transport::SMTP  120
trace        Mail::Reporter         'WARNINGS'
via          Mail::Transport        <unused>
helo_domain => HOST

The fully qualified name of the sender's host (your system) which is used for the greeting message to the receiver. If not specified, Net::Config or else Net::Domain are questioned to find it. When even those are nor working, the domain is taken from the From line of the message.

port => STRING

The port to be used when contacting the server. IO::Socket describes this field as PeerPort.

proxy => HOST|ARRAY-OF-HOSTS

Specifies the system which is used as relay HOST. By default, the configuration of Net::Config is used. When more than one hostname is specified, the first host which can be contacted will be used.

timeout => SECONDS

The number of sections to wait maximally for contacting the server.

send MESSAGE, OPTIONS

Transmit the MESSAGE. It returns true when the transmission was succesfully completed. Some extensions to Mail::Transport may offer OPTIONS, but at least the following are supported:

OPTIONS      DESCRIBED IN              DEFAULT
interval     Mail::Transport           30
retry        Mail::Transport           undef

METHODS for extension writers

contactServer

Creates the connect to the SMTP server. When more than one hostname was specified, the first which accepts a connection is taken. An IO::Server::INET object is returned.

SEE ALSO

Mail::Box-Overview

AUTHOR

Mark Overmeer (mailbox@overmeer.net). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

VERSION

This code is beta, version 2.003.

Copyright (c) 2001 Mark Overmeer. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.