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

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.14.248
File Size Uploaded
yagmail-0.14.248.tar.gz 17.5 kB Details

Built distribution (wheel)

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

Total release size: 33.1 kB

Release files / yagmail-0.14.248.tar.gz

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

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

Download URL yagmail-0.14.248-py2.py3-none-any.whl
Size 15.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
9efb8d480aab8b9ee10ea1481cdd460a9650e3d2966c4cdbb645ee24626389e7
BLAKE2b-256 checksum
How to use checksums
67bcff58a9ddab49ad6e5959ccbfc4832ff37d600b9b4b8027cf613a2c1d139b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Release history Release notifications | RSS feed

0.16.0

2 release files

This release

0.14.248 This release

2 release files

0.5.140

1 release file

0.5.135

1 release file

0.4.130

1 release file

0.4.99

2 release files

0.4.95

2 release files

0.4.93

2 release files

0.4.87

1 release file

0.4.86

1 release file

0.4.84

1 release file

0.4.82

1 release file

0.3.81

1 release file

0.3.80

1 release file

0.3.79

1 release file

0.3.78

1 release file

0.3.76

1 release file

0.3.72

1 release file

0.3.71

1 release file

0.3.70

1 release file

0.3.7

1 release file

0.3.6

1 release file

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

0.0.0

2 release files

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