| Config-Manager documentation | view source | Contained in the Config-Manager distribution. |
Config::Manager::SendMail - Simple SMTP CLient
use Config::Manager::SendMail qw( SendMail ); use Config::Manager::SendMail qw(:all); &SendMail($from,$to,$subject,@text); &NotifyAdmin($subject,@text);
Dieses Modul stellt die Basisfunktionalitaet zur Verfuegung, um auf einfache Art und Weise Mails zu verschicken. Dies kann z.B. genutzt werden, um sich bei Prozessen, die im Hintergrund laufen und die nicht staendig kontrolliert werden, im Fehlerfall eine entsprechende Meldung schicken zu lassen.
&SendMail($from,$to,$subject,@text)
Parameter: $from - Mailadresse des Absenders
$to - Mailadresse des oder der Empfaenger(s)
$subject - Betreff der Mail
@text - Zeilen des Textes (ohne Newlines!)
Rueckgabe: 1 - OK
undef - Fehler
$to" geschrieben werden, durch Kommas voneinander getrennt.
&NotifyAdmin($subject,@text)
Parameter: $subject - Betreff der Mail
@text - Zeilen des Textes (ohne Newlines!)
Rueckgabe: -
&Quit($smtp,$server);
Parameter: $smtp - Referenz auf Net::SMTP-Objekt
$server - Rechnername der SMTP-Servers
Rueckgabe: -
Config::Manager(3), Config::Manager::Base(3), Config::Manager::Conf(3), Config::Manager::File(3), Config::Manager::PUser(3), Config::Manager::Report(3), Config::Manager::User(3).
This man page documents "Config::Manager::SendMail" version 1.7.
Steffen Beyer <sb@engelschall.com> http://www.engelschall.com/u/sb/download/ Gerhard Albers
Copyright (c) 2003 by Steffen Beyer & Gerhard Albers. All rights reserved.
This package is free software; you can use, modify and redistribute it under the same terms as Perl itself, i.e., under the terms of the "Artistic License" or the "GNU General Public License".
Please refer to the files "Artistic.txt" and "GNU_GPL.txt" in this distribution, respectively, for more details!
This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the "GNU General Public License" for more details.
| Config-Manager documentation | view source | Contained in the Config-Manager distribution. |