Transport::Mailx(3)

NAME
Mail::Transport::Mailx - transmit messages using external mailx program

CLASS HIERARCHY
 Mail::Transport::Mailx
 is a Mail::Transport::Send
 is a Mail::Transport
 is a Mail::Reporter

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

DESCRIPTION
Implements mail transport using the external programs 'mailx', "Mail", or 'mail'. When instantiated, the mailer will look for any of these binaries in specific system directories, and the first program found is taken.

Under Linux, freebsd, and bsdos the mail, Mail, and mailx names are just links. They are very primitive, what will cause many headers to be lost. For these platforms, you can better not use this transport mechanism.

METHOD INDEX
Methods prefixed with an abbreviation are described in Mail::Reporter (MR), Mail::Transport (MT), Mail::Transport::Send (MTS).

The general methods for "Mail::Transport::Mailx" objects:

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

The extra methods for extension writers:

   MR AUTOLOAD                          MR logSettings
   MR DESTROY                           MR notImplemented
   MT findBinary NAME [, DIRECTOR...   MTS putContent MESSAGE, FILEHAN...
   MR inGlobalDestruction               MT remoteHost
   MR logPriority LEVEL                 MT retry

METHODS

new OPTIONS
     OPTION    DESCRIBED IN           DEFAULT
     hostname  Mail::Transport        <not used>
     interval  Mail::Transport        30
     log       Mail::Reporter         'WARNINGS'
     password  Mail::Transport        <not used>
     proxy     Mail::Transport        <autodetect>
     retry     Mail::Transport        undef
     style     Mail::Transport::Mailx <autodetect>
     trace     Mail::Reporter         'WARNINGS'
     timeout   Mail::Transport        <not used>
     username  Mail::Transport        <not used>
     via       Mail::Transport        'mailx'

    * style =<gt> '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 verious Linux distributions).

SEE ALSO
Mail::Box-Overview

For support and additional documentation, see http://perl.overmeer.net/mailbox/

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.018.

Copyright (c) 2001-2002 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.