Test::Reporter::POEGateway::Mailer::SMTP - Sends reports via Net::SMTP
#!/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();
This module sends reports via Net::SMTP with some extra options.
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:
The smtp server we will use to send emails.
The default is: localhost
Extra options to pass to Net::SMTP if needed. Useful to set the port, for example.
The default is: {}
The destination address we will send reports to.
The default is: cpan-testers@perl.org
If enabled, this module will use Net::SMTP::SSL and attempt a secure connection to the host.
The default is: false
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
The password to use for SMTP AUTH to the server.
Test::Reporter::POEGateway::Mailer
Net::SMTP
Net::SMTP::SSL
Authen::SASL
Apocalypse <apocal@cpan.org>
Copyright 2009 by Apocalypse
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Test::Reporter::POEGateway, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Reporter::POEGateway
CPAN shell
perl -MCPAN -e shell install Test::Reporter::POEGateway
For more information on module installation, please visit the detailed CPAN module installation guide.