Apocalypse > Test-Reporter-POEGateway > Test::Reporter::POEGateway::Mailer::SMTP

Download:
Test-Reporter-POEGateway-0.04.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.04   Source  

NAME ^

Test::Reporter::POEGateway::Mailer::SMTP - Sends reports via Net::SMTP

SYNOPSIS ^

        #!/usr/bin/perl
        use strict; use warnings;
        use Test::Reporter::POEGateway::Mailer;

        # let it do the work!
        Test::Reporter::POEGateway::Mailer->spawn(
                'mailer'        => 'SMTP',
                'mailer_conf'   => {
                        'smtp_host'     => 'smtp.mydomain.com',
                        'smtp_opts'     => {
                                'Port'  => '465',
                                'Hello' => 'mydomain.com',
                        },
                        'ssl'           => 1,
                        'auth_user'     => 'myuser',
                        'auth_pass'     => 'mypass',
                },
        );

        # run the kernel!
        POE::Kernel->run();

ABSTRACT ^

This module sends reports via Net::SMTP with some extra options.

DESCRIPTION ^

You normally use this module via the Test::Reporter::POEGateway::Mailer module. You would need to configure the 'mailer' to 'SMTP' and set any 'mailer_conf' options if needed.

The config this module accepts is:

smtp_host

The smtp server we will use to send emails.

The default is: localhost

smtp_opts

Extra options to pass to Net::SMTP if needed. Useful to set the port, for example.

The default is: {}

to

The destination address we will send reports to.

The default is: cpan-testers@perl.org

ssl

If enabled, this module will use Net::SMTP::SSL and attempt a secure connection to the host.

The default is: false

auth_user

The user to use for SMTP AUTH to the server. If defined, we will issue an AUTH command to the server. If not, we will skip this step on connection.

The default is: undef

auth_pass

The password to use for SMTP AUTH to the server.

The default is: undef

SEE ALSO ^

Test::Reporter::POEGateway::Mailer

Net::SMTP

Net::SMTP::SSL

Authen::SASL

AUTHOR ^

Apocalypse <apocal@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright 2010 by Apocalypse

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

syntax highlighting: