normalize Function

email_normalize.normalize(email_address)[source]

Normalize an email address

This method abstracts the asyncio base for this library and provides a blocking function. If you intend to use this library as part of an asyncio based application, it is recommended that you use the normalize() instead.

Note

If the MX records could not be resolved, the mx_records attribute of the result will be an empty list and the mailbox_provider attribute will be None.

Usage Example

import email_normalize

result = email_normalize.normalize('foo@bar.io')
Parameters

email_address (str) – The address to normalize

Return type

email_normalize.Result