Files
tryton/trytond/doc/ref/tools/email.rst
T

31 lines
709 B
ReStructuredText

.. _ref-tools-email_:
.. module:: trytond.tools.email_
Email
=====
.. function:: set_from_header(message, sender, from\_)
Fill email headers to appear at best from the address.
.. function:: has_rcpt(message)
Return if the :py:class:`~email.message.Message` has any recipient.
.. function:: format_address(email[, name])
Return a string suitable for an :rfc:`2822` ``From``, ``To`` or ``Cc``
header.
.. function:: validate_email(email[, check_deliverability])
Validate the email address and check deliverability.
.. function:: normalize_email(email)
Return the email address normalized.
.. function:: convert_ascii_email(email):
Return the equivalent email address in ASCII.