Test::Nightly::Email - Emails reports, errors etc.
Package that uses the Email::* modules to mail reports and error notifications. Use this module to set up your email configuration. You probably should not be dealing with this directly.
my $email = Test::Nightly::Email->new({ to => 'kirstinbettiol@gmail.com', }); $email->send({ subject => 'Your Test Report', message => 'All your tests failed!' });
my $email = Test::Nightly::Email->new({ to => 'kirstinbettiol@gmail.com', # Required cc => 'kirstinbettiol@gmail.com', bcc => 'kirstinbettiol@gmail.com', from => 'kirstinbettiol@gmail.com', subject => 'The results of your test', content_type => 'text/html', # Defaults 'text/html' mailer => 'Sendmail', # 'SMTP' || 'Qmail'. Defaults to 'Sendmail' message => 'The body of the email', smtp_server => 'smtp.yourserver.com', # Required if you specify SMTP as your mailer. });
The constructor to create the new email object.
$email->send({ ... takes the same arguments as new ... });
Sends the email.
The email "To" field. Takes a comma separated list of emails. Required.
The email "Cc" field. Takes a comma separated list of emails.
The email "Bcc" field. Takes a comma separated list of emails.
The email "from" field.
The subject line of the email
The Content-type you wish the email to be. Defaults to 'text/html'.
The mailer you wish to use. Currently supports 'Sendmail' || 'SMTP' || 'Qmail'. Defaults to 'Sendmail'
The body of the email.
If you specify SMTP as your mailer then you are required to specify this.
Kirstin Bettiol <kirstinbettiol@gmail.com>
(c) 2005 Kirstin Bettiol This library is free software, you can use it under the same terms as perl itself.
Email::Send, Email::Simple, Email::Simple::Creator, Email::Send::Qmail, Email::Send::SMTP, Email::Send::Sendmail, Test::Nightly, Test::Nightly::Test, Test::Nightly::Report, Test::Nightly::Email, perl.
To install Test::Nightly, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Nightly
CPAN shell
perl -MCPAN -e shell install Test::Nightly
For more information on module installation, please visit the detailed CPAN module installation guide.