|
Mail::QmailQueue - Perl extension to operate qmail-queue directly |
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.
new(QMAIL_QUEUE)
sender(ADDRESS)mail(ADDRESS)data(DATA)if you call this method twice or more. DATA will be appended.
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.
|
Mail::QmailQueue - Perl extension to operate qmail-queue directly |