NAME

Notice::Email - A class to send notices as email in the AURORA notification-service

SYNOPSIS

use Notice::Email;

# create instance
my $n=Notice::Email->new(host=>"oompaloompa");

# send a notice
$n->send("charliebucket451@yahoo.com","willy.wonka@wonka.chocolate","I WON!!!","Hi\nPlease know that I have found one of the golden tickets.");

# get last error
print $n->error();

DESCRIPTION

A class for sending notices as email in the AURORA notification-service.

CONSTRUCTOR

new()

Instantiate class.

The method takes one input: host. This denotes the host-address of the smtp-server.

Returns a class instance.

METHODS

send()

Attempts to send a notice as an email using an smtp-server.

The from and to parameters are to be email-addresses.

Please see the Notice placeholder-class for more information on the use of this method.

error()

Returns the last error that has happened (if any).

No input is accepted.