Ricardo SIGNES > Email-Pipemailer-1.000 > Email::Pipemailer::DieHandler

Download:
Email-Pipemailer-1.000.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.000   Source   Latest Release: Email-Pipemailer-1.001

NAME ^

Email::Pipemailer::DieHandler - do not die embarassingly if you screw up your pipemailer

VERSION ^

version 1.000

SYNOPSIS ^

    #!/usr/bin/perl
    use Email::Pipemailer::DieHandler -install;
    use strict;
    use warnings;

    # your code goes here

Always put the DieHandler before anything else. You want there to be absolutely no condition that will cause a bounce, right? That includes failure to compile.

This is also legal:

    use Email::Pipemailer::DieHandler -install => { logger => sub { ... } };

The error will be passed to the sub.

AUTHOR ^

  Ricardo Signes <rjbs@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2009 by Ricardo Signes.

This is free software; you can redistribute it and/or modify it under the same terms as perl itself.

syntax highlighting: