Dicop::Mail - send email



NAME

Dicop::Mail - send email


SYNOPSIS

        use Dicop::Mail;
        use base qw/Dicop::Handler/;
        ...
        $self->flush_email_queue($write_flag);


REQUIRES

Mail::Sendmail, Dicop::Event


EXPORTS

Exports nothing.


DESCRIPTION

Dicop::Mail inserts a flush_email_queue into the Dicop::Handler class.

It's purpose is to separate the email sending out, so that the client can inherit from Dicop::Handler without the need for Mail::Sendmail.


METHODS

flush_email_queue($write_flag);


Tries to send all mails in the queue, and return the number of mails
successfully sent. This should be called outside the code that handles a
client request, so that the client does not need to wait until all the
emails are sent.

This routine will also put all to-be-sent emails into a logfile unless $write_flag is true.


AUTHOR

(c) Bundesamt fuer Sicherheit in der Informationstechnik 1998-2006

DiCoP is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

See http://www.bsi.de/ for more information.