I have looked at other scripts and posts on here to figure out whats wrong with my redirecting and cannot figure it out. Instead of doing the redirect. Here is the bottom of my script.

Any help would be appreciated. Thanks!


print MAIL "Sent from $sendername\n";
print MAIL "\n";
print MAIL "\n";

close(MAIL);

print "Location: http://www.mydomain.com/mail_sent.htm\n\n";
exit;

I tried it with and without the exit; at the bottom. It just actually displays whats in the quotes on the screen.