NAME

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

SYNOPSIS

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;

DESCRIPTION

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

CONSTRUTOR

new(QMAIL_QUEUE)

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

METHODS

sender(ADDRESS)

set sender's mail address.

mail(ADDRESS)

Synonym for sender.

recipient(ADDRESS [,ADDRESS, [...]])

set recipient's mail address.

to(ADDRESS [,ADDRESS, [...]])

Synonym for recipient.

data(DATA)

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

send mail.

AUTHOR

IKEBE Tomohiro <ikebe@edge.co.jp>

SEE ALSO

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

COPYRIGHT

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.