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


Mail-QmailRemote documentation  | view source Contained in the Mail-QmailRemote distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  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

Top

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

CONSTRUCTOR

Top

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

METHODS

Top

set sender's mail address.

Synonym for sender.

set recipient's mail address.

Synonym for recipient.

set mail message. (including header.)

send mail.

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

AUTHOR

Top

IKEBE Tomohiro <ikebe@cpan.org>

SEE ALSO

Top

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

qmail-remote(8)

COPYRIGHT

Top


Mail-QmailRemote documentation  | view source Contained in the Mail-QmailRemote distribution.