Skip to main content

yagmail - Yet another GMAIL / SMTP client

yagmail is a GMAIL/SMTP client that aims to make it as simple as possible to send emails.

Sending an Email is as simple:

import yagmail
yag = yagmail.SMTP()
contents = [
    "This is the body, and here is just text http://somedomain/image.png",
    "You can find an audio file attached.", '/local/path/to/song.mp3'
]
yag.send('to@someone.com', 'subject', contents)

# Alternatively, with a simple one-liner:
yagmail.SMTP('mygmailusername').send('to@someone.com', 'subject', contents)

Note that yagmail will read the password securely from your keyring, see the section on Username and Password in the repository’s README for further details. If you do not want this, you can initialize yagmail.SMTP like this:

yag = yagmail.SMTP('mygmailusername', 'mygmailpassword')

but honestly, do you want to have your password written in your script?

For further documentation and examples, please go to https://github.com/kootenpv/yagmail.

The full documentation is available at http://yagmail.readthedocs.io/en/latest/.

Release files for yagmail 0.15.287

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yagmail 0.15.287
File Size Uploaded Provenance Actions
yagmail-0.15.287.tar.gz 69.4 kB Without provenance Details for yagmail-0.15.287.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yagmail 0.15.287
File Interpreter ABI Platform Actions
yagmail-0.15.287-py2.py3-none-any.whl Python 2, Python 3 none any Details for yagmail-0.15.287-py2.py3-none-any.whl

Total release size: 87.0 kB

Release files / yagmail-0.15.287.tar.gz

Download URL yagmail-0.15.287.tar.gz
Size 69.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f81a5ef1d4bec8bc3ca308ec7671e5b9d45266599f55c02aebd014fa8f00854c
BLAKE2b-256 checksum
How to use checksums
a925cb51367a011e5e40c21afc09c885b8efe2e6af16a1414865b269cf49c5f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release files / yagmail-0.15.287-py2.py3-none-any.whl

Download URL yagmail-0.15.287-py2.py3-none-any.whl
Size 17.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b66edf9bc57a82b067f374ee58435179dbf6e4952e7656a1df930369c2350ce3
BLAKE2b-256 checksum
How to use checksums
18ac8accda0bd36e86e3401971c9a6f6920f08e4934bb4f55c4a263119419482
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Security for yagmail 0.15.287

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.15.287 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page