NAME
Mail::Transfer - Object base class to any mail transfer protocol / Objectorientierte Basisklasse für beliebiges Mailübertragungsprotokoll
ENGLISH
Synopsis
#!/usr/bin/perl
use strict; # dont you never ever forget this
use Mail::Transfer;
my $mt = Mail::Transfer->new(
PEERADDR => 'perl.intertivity.com',
PEERPORT => 110, # standard POP3 port
PEERADDR_SSL => 'perl.intertivity.com',
PEERPORT_SSL => 995, # standard POP3S port
SOCKSADDR => 'socks5.intern', # some SOCKS5 host
SOCKSPORT => 1080, # standard SOCKS5 host
SOCKSUSER => 'socksuser',
SOCKSPASSWORD => 'sockspassword',
TIMEOUT => 60,
USINGSSL => 2, # 0 == no, 1 == yes, 2 == try first
USINGSOCKS => 2) # 0 == no, 1 == yes, 2 == try first
or die "Could not create Mail::Transfer object: $!";
if($mt->connect())
{
# do something
$mt->disconnect();
}
Abstract
Mail::Transfer
provides an object interface to transfer mails over the wire. The (hopefully) nice thing about it is that you can choose which kind of socket type (based on IO::Socket::INET
, IO::Socket::SSL
, IO::Socket::SOCKS
) you want to use. Even SOCKSS is provided using a build in combination of IO::Socket::SSL
and IO::Socket::SOCKS
which i will publish as an standalone module at a later time.
Mail::Transfer
defines methods for those operations which are common to all types of socket and help to distinguish between the socket types used. Operations which are specified to a mail protocol in a particular domain have methods defined in sub classes of Mail::Transfer
.
Description
See also
More than just Mail::Transfer
: Mail::Transfer::POP3, Mail::Transfer::SMTP
Documentation of the mentioned modules: IO::Socket::INET, IO::Socket::SSL, IO::Socket::SOCKS
Look at http://perl.intertivity.com for more details.
Author
Sascha Kiefer, <sk@intertivity.com>, http://www.intertivity.com
Copyright und licence
Copyright 2004 by Sascha Kiefer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
DEUTSCH
Synopsis
#!/usr/bin/perl
use strict; # vergiss mal nicht
use Mail::Transfer;
my $mt = Mail::Transfer->new(
PEERADDR => 'perl.intertivity.com',
PEERPORT => 110, # standard POP3 port
PEERADDR_SSL => 'perl.intertivity.com',
PEERPORT_SSL => 995, # standard POP3S port
SOCKSADDR => 'socks5.intern', # some SOCKS5 host
SOCKSPORT => 1080, # standard SOCKS5 host
SOCKSUSER => 'socksuser',
SOCKSPASSWORD => 'sockspassword',
TIMEOUT => 60,
USINGSSL => 2, # 0 == nein, 1 == ja, 2 == versuch zuerst
USINGSOCKS => 2) # 0 == nein, 1 == ja, 2 == versuch zuerst
or die "Konnte Mail::Transfer Objekt nicht erzeugen: $!";
if($mt->connect())
{
# mach was
$mt->disconnect();
}
Abstrakt
Mail::Transfer
stellt eine objektorientierte Schnittstelle zum Übertragen von Mails zur Verfügung. Das (hoffentlich) Tolle daran ist, dass dabei ein beliebiger Socket Typus (basierend auf based on IO::Socket::INET
, IO::Socket::SSL
, IO::Socket::SOCKS
) verwendet werden kann. Sogar SOCKSS ist durch eine Kombination von IO::Socket::SSL
und IO::Socket::SOCKS
, welche ich zu einem späteren Zeitpunkt als eigenständiges Modul anbieten werde, möglich.
Mail::Transfer
definiert solche Methoden, die typischerweise von allen Socket Typen unterstützt werden und solche, die helfen zwischen den benutzten Socket Typen unterscheiden zu können. Funktionalität, welche an ein bestimmtes Mail Protokoll gebunden ist, sind in Unterklassen zu Mail::Transfer
definiert.
Beschreibung
Siehe auch
Mehr zu Mail::Transfer
: Mail::Transfer::POP3, Mail::Transfer::SMTP
Dokumentation der erwähnten Module: IO::Socket::INET, IO::Socket::SSL, IO::Socket::SOCKS Schau für mehr Informationen auf http://perl.intertivity.com vorbei.
Author
Sascha Kiefer, <sk@intertivity.com>, http://www.intertivity.com
Kopierrechte und Lizenz
Copyright 2004 by Sascha Kiefer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 291:
Non-ASCII character seen before =encoding in 'für'. Assuming CP1252