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

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.285
File Size Uploaded Provenance Actions
yagmail-0.15.285.tar.gz 69.4 kB Without provenance Details for yagmail-0.15.285.tar.gz

Built distribution (wheel)

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

Total release size: 87.0 kB

Release files / yagmail-0.15.285.tar.gz

Download URL yagmail-0.15.285.tar.gz
Size 69.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e7002f0303681237c4389e7c4c8ae8dd0432abd579758f4887fa967b6eebe7ac
BLAKE2b-256 checksum
How to use checksums
9039b66c3fb24474e7af9ced489bac8d6adf7c06b6878f6d6c24840f2b55325a
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.285-py2.py3-none-any.whl

Download URL yagmail-0.15.285-py2.py3-none-any.whl
Size 17.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e3fb09e698cbb6e67e9f894f9a0b3e3f11c4d5623fcd41dd04b05c9e9ddb3956
BLAKE2b-256 checksum
How to use checksums
007f562e1f926a4bbff35e80a5903604706cba31b657005407240b82b47e6668
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.285

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