NAME

Email::Postman - Send multirecipient emails to the world.

VERSION

Version 0.03

SYNOPSIS

my $postman = Email::Postman->new({ hello => 'my-domain.com', from => 'postmaster@domain.com' } );

my $email = any Email::Abstract compatible email.

my @reports = $postman->deliver($email);

ATTRIBUTES

hello

The domain from which the emails will be sent. Defaults to 'localdomain'

from

The default 'from' ENVELOPPE email address. Defaults to 'localuser@localdomain'

Note that this is NOT related to the 'From' header that your Email::Abstract object should have.

debug

Just a debugging flag. Defaults to 0

METHODS

deliver

Deliver the given email (something compatible with Email::Abstract (or an email Abstract itself) to its recipients. and returns an array of Email::Postman::Report about the success/failures of email address the delivery was attempted.

Note 1: This method will attempt to deliver the email using SMTP using a direct connection to the MX records of the recipient's domains.

Note 2: that this method CAN be slow, due to distant email servers response times. You are encouraged to use this asynchronously.

Usage:

  my @report = $this->deliver($email);

AUTHOR

Jerome Eteve, <jerome.eteve at gmail.com>

BUGS

Please report any bugs or feature requests to bug-email-postman at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Email-Postman. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Email::Postman

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2013 Jerome Eteve.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.