I'm still trying to get my script to send some a simple email. I looked up
some examples, namely : http://perlfect.com/articles/sendmail.shtml,
but it still doesn't work. I'm using the -T switch, and heres the code
fragment:
First, I define my variables:
#variables for sending mail
my $sendmail = "/usr/local/bin/sendmail -t";
my $replyto = "Reply-to: aitp\@grove.ufl.edu";
my $to = "ryepup\@.ufl.edu";
Then, I untaint (I think) my environment vars,
$ENV{'PATH'} = "/usr/local/bin:/bin:/usr/bin";
delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'};
Then I try to send the mail.
open(MAIL, "|$sendmail");
print MAIL $replyto."\n";
print MAIL "Subject: \"$fn $ln\" added to list."."\n";
print MAIL $to."\n";
print MAIL "Content-type: text/plain\n\n";
print MAIL "$fn\n$ln\n$email\n$url\n$gpa\n$keywords\n";
close(MAIL);
I get no errors, it just doesn't send the mail. Any ideas?
Thanks,
Ryan
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]