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.280

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.280
File Size Uploaded Provenance Actions
yagmail-0.15.280.tar.gz 69.2 kB Without provenance Details for yagmail-0.15.280.tar.gz

Built distribution (wheel)

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

Total release size: 86.8 kB

Release files / yagmail-0.15.280.tar.gz

Download URL yagmail-0.15.280.tar.gz
Size 69.2 kB
Tags Source
SHA-256 checksum
How to use checksums
870708fd5134a286cc2709ee7bec4c3dafadcc11a2aa229094ac7369f7bc9d78
BLAKE2b-256 checksum
How to use checksums
8ab95a806d7da7b3e53084cf5f30bf9bcd9e1d657cfe657bc9cfbc8fd11168b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

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

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

Security for yagmail 0.15.280

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.280 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