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 anasyncio
based application, it is recommended that you use thenormalize()
instead.Note
If the MX records could not be resolved, the
mx_records
attribute of the result will be an emptylist
and themailbox_provider
attribute will beNone
.Usage Example
import email_normalize result = email_normalize.normalize('foo@bar.io')
Parameters: email_address ( str
) – The address to normalizeReturn type: email_normalize.Result