API Reference

This page displays a full reference of yagmail’s API.

Authentication

Another way of authenticating is by passing an oauth2_file to 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 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

E-Mail Contents

Exceptions

Utilities