in reply to Need help with http 1.1 headers
A side note: The script doesn’t use strict. When I added this, it uncovered two errors in sub error1:
The variable $sitename is not defined.
In the line:
print MAIL "To: firstname.lastname@example.org\n";
the @ symbol is not escaped, meaning the (non-existent) array @email will be interpolated, producing: To: info.com.
Moral: Always use strict !
Hope that helps,