Notice::Sendmail
- A class to send notices as email through sendmail in the AURORA notification-service
use Notice::Sendmail;
# create instance
my $n=Notice::Sendmail->new(binary=>"/usr/sbin/sendmail");
# 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 through sendmail in the AURORA notification-service.
Instantiate class.
Only takes one optional parameter: binary. It specifies the full path and binary of sendmail. If not specified will default to "/usr/sbin/sendmail".
Returns a class instance.
Attempts to send a notice as an email using sendmail.
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.