I am using the following piece of code to send email I can not figure out why it errors out because it worked the other day and now it is not. I have not changed anything on the system and installed the sendmail.pl in the lib folder:
use Mail:Sendmail; %mail = ( To => '[EMAIL PROTECTED]', From => 'Nobody', Subject => 'Error', Message => "my $data = <WORKFLOW> for (1..21)" ); sendmail(%mail) or die $Mail::Sendmail::error; print "OK. Log says:\n", $Mail::Sendmail::log; Error message: syntax error at email_test line 4, near "use Mail:" Execution of email_test aborted due to compilation errors. Thank you -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]