
Dicop::Mail - send email

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

Mail::Sendmail, Dicop::Event

Exports nothing.

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.

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.

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