API Reference ============= This page displays a full reference of `yagmail`\'s API. Authentication -------------- .. autofunction:: yagmail.register Another way of authenticating is by passing an ``oauth2_file`` to :class:`yagmail.SMTP`, which is among the safest methods of authentication. Please see the `OAuth2 section `_ of the `README `_ for further details. It is also possible to simply pass the password to :class:`yagmail.SMTP`. If no password is given, yagmail will prompt the user for a password and then store the result in the keyring. SMTP Client ----------- .. autoclass:: yagmail.SMTP :members: E-Mail Contents --------------- .. autoclass:: yagmail.raw .. autoclass:: yagmail.inline Exceptions ---------- .. automodule:: yagmail.error :members: Utilities ----------------- .. autofunction:: yagmail.validate.validate_email_with_regex