#!/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()