Hi,
I'm trying to make a simple script to send members from the mailing list an email.
When I only send one person an email it works fine but when I try to go through the array of members I receive an Internal Server Error.
This is the part:
foreach$newemail(@emails){
open (MAIL, "| $maillocation -t"
|| die "cant use $maillocation";
print MAIL "from: $from\n";
print MAIL "To: $newmail\n";
print MAIL "Reply-to: $from\n";
print MAIL "Subject: $subject\n";
MAIL " email message";
close (MAIL);
}
Any ideas whats causing this and what to do about it?
Regards,
Ron
I'm trying to make a simple script to send members from the mailing list an email.
When I only send one person an email it works fine but when I try to go through the array of members I receive an Internal Server Error.
This is the part:
foreach$newemail(@emails){
open (MAIL, "| $maillocation -t"

print MAIL "from: $from\n";
print MAIL "To: $newmail\n";
print MAIL "Reply-to: $from\n";
print MAIL "Subject: $subject\n";
MAIL " email message";
close (MAIL);
}
Any ideas whats causing this and what to do about it?
Regards,
Ron