NAME

Mail::QmailRemote - Perl extension to send email using qmail-remote directly.

SYNOPSIS

  use Mail::QmailRemote;
  use Mime::Lite;

  # generate mail.
  my $mime = MIME::Lite->new(
			     ...
			    );

  # send mail using qmail-remote
  my $remote = Mail::QmailRemote->new;
  $remote->sender($ENV{USER});
  $remote->recipient('postmaster@foo.bar');
  $remote->data($mime->as_string);
  $remote->send;

DESCRIPTION

this module send email, using qmail-remote program directly. MX or A Record is searched by Net::DNS module.

CONSTRUCTOR

new(QMAIL_REMOTE)

construtor for Mail::QmailRemote object. QMAIL_REMOTE is location of qmail-remote program (default /var/qmail/bin/qmail-remote)

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

send

send mail.

errstr

if some problem has occured, return error message from qmail-remote.

AUTHOR

IKEBE Tomohiro <ikebe@cpan.org>

SEE ALSO

Net::DNS IPC::Open3 Mail::QmailQueue

qmail-remote(8)

COPYRIGHT

Copyright(C) 2001 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.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 180:

'=item' outside of any '=over'