[Fri Oct 13 07:32:42 2006] [error] [client 192.168.1.102] sh: -c: line 1: syntax error near unexpected token `newline' [Fri Oct 13 07:32:42 2006] [error] [client 192.168.1.102] sh: -c: line 1: `/usr/sbin/sendmail -f script-cgi@tld.hostname.com him@thatone.example.net,her@theotherone.example.net "Coordinator's Name" ' [Fri Oct 13 07:32:42 2006] [error] [client 192.168.1.102] Now sending email using the `sendmail` method. #### #!/usr/bin/perl -w use strict; use Mail::Mailer; my $self = {}; my $from = "script-cgi\@tld.hostname.com"; my $to = "him\@thatone.example.net,her\@theotherone.example.net"; my $cc = "\"Coordinator's Name\" "; my $subject = "Test sendemail path"; my $email_method = "sendmail"; my $msg =<new(); $mailer->open({ From => "$from", To => "$to", Cc => "$cc", Subject => "$subject", }) or die "Can not open: $! \n"; print $mailer $msg; $mailer->close(); return 1; } else { return 0; } } # END sendemail()