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

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.12.233
File Size Uploaded Provenance Actions
yagmail-0.12.233.tar.gz 17.5 kB Without provenance Details for yagmail-0.12.233.tar.gz

Built distribution (wheel)

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

Total release size: 33.9 kB

Release files / yagmail-0.12.233.tar.gz

Download URL yagmail-0.12.233.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c103b9b9126dac90dca07a3a4b9dc7a3a5cda8f588096c8b2187a0b6a2dfae2d
BLAKE2b-256 checksum
How to use checksums
91f02e209a9cc432ca39c308620b23392a88b0bb6a9dd071546e8884ac3ab300
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

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

Download URL yagmail-0.12.233-py2.py3-none-any.whl
Size 16.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3a93df7e31865deaf3be048ff223dbc249343e0f823c6b4343ace759480aaacd
BLAKE2b-256 checksum
How to use checksums
0baadf740f4f176b71c79733c1e3d25a2ba9b9795f38364641a35243e363ab14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Security for yagmail 0.12.233

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