
Mail::QmailQueue - Perl extension to operate qmail-queue directly

use Mail::QmailQueue;
use Mime::Lite;
# generate mail.
my $mime = MIME::Lite->new(
#...
);
# send mail via qmail-queue.
my $qmail = Mail::QmailQueue->new;
$qmail->sender($ENV{USER});
$qmail->recipient('postmaster@foo.bar');
$qmail->data($mime->as_string);
$qmail->send;

This module operate qmail-queue directly, so, you can send mail more faster than the case where SMTP is used.

construtor for Mail::QmailQueue object. QMAIL_QUEUE is location of qmail-queue program (default /var/qmail/bin/qmail-queue)

set sender's mail address.
Synonym for sender.
set recipient's mail address.
Synonym for recipient.
set mail message. (including header.) DATA can be either a scalar or a ref to an array of scalars.
if you call this method twice or more. DATA will be appended.
send mail.

IKEBE Tomohiro <ikebe@edge.co.jp>

qmail. http://cr.yp.to/qmail.html qmail-queue man page.

Copyright(C) 2002 IKEBE Tomohiro All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.