---
name: "CGI::Untaint::email"
section: "3pm"
platform: "linux"
package: "libcgi-untaint-email-perl"
version: "0.03-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/CGI::Untaint::email"
---

# CGI::Untaint::email(3pm)

validate an email address

## NAME

CGI::Untaint::email - validate an email address

## SYNOPSIS

```
  use CGI::Untaint;
  my $handler = CGI::Untaint->new($q->Vars);
  my $email = $handler->extract(-as_email => 'emailaddress');
```

## DESCRIPTION

CGI::Untaint::email input handler verifies that it is a valid RFC2822 mailbox format.

The resulting value will be a Mail::Address instance.

## AUTHOR

Tatsuhiko Miyagawa \<miyagawa@bulknews.net\>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

## SEE ALSO

CGI::Untaint, Email::Valid
