Parse an SMTP (RFC-5321) address.

Usage no npm install needed!

<script type="module">
  import smtpAddressParser from '';



Parse an SMTP (RFC-5321) address.

Some notes

Length limitations are not checked.

Technically a local-part of a Mailbox address is limited to 64 octets or less, see:

Also, domain names are limited to 255 octets, see:

And individual labels within a domain name are limited to 63 octets or less, see: section 2.3.4. Size limits

However, RFC-5321 section “Size Limits and Minimums” says:

“To the maximum extent possible, implementation techniques that impose no limits on the length of these objects should be used.”