First thing, don't re-invent the wheel on http request processing.
Use CGI or CGI::Simple, or some other module that has been very heavily tested, rather than trying to process data yourself.
For email address processing, try Email::Valid
my $addr = Email::Valid->address( -address => $email, -mxcheck => 0 );
if ($addr) {
# send it
}