The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Test::Nightly::Email - Emails reports, errors etc.

DESCRIPTION

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.

SYNOPSIS

  my $email = Test::Nightly::Email->new({
    to => 'kirstinbettiol@gmail.com',
  });

  $email->send({
    subject => 'Your Test Report',
    message => 'All your tests failed!'
  });

new()

  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.

send()

  $email->send({
    ... takes the same arguments as new ...
  });

Sends the email.

List of methods:

to

The email "To" field. Takes a comma separated list of emails. Required.

cc

The email "Cc" field. Takes a comma separated list of emails.

bcc

The email "Bcc" field. Takes a comma separated list of emails.

from

The email "from" field.

subject

The subject line of the email

content_type

The Content-type you wish the email to be. Defaults to 'text/html'.

mailer

The mailer you wish to use. Currently supports 'Sendmail' || 'SMTP' || 'Qmail'. Defaults to 'Sendmail'

message

The body of the email.

smtp_server

If you specify SMTP as your mailer then you are required to specify this.

AUTHOR

Kirstin Bettiol <kirstinbettiol@gmail.com>

COPYRIGHT

(c) 2005 Kirstin Bettiol This library is free software, you can use it under the same terms as perl itself.

SEE ALSO

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.