Notice::Email
- A class to send notices as email in the AURORA notification-service
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();
A class for sending notices as email in the AURORA notification-service.
Instantiate class.
The method takes one input: host. This denotes the host-address of the smtp-server.
Returns a class instance.
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.
Returns the last error that has happened (if any).
No input is accepted.