Skip to main content

Yet Another GMAIL client

Project description

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 history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yagmail-0.15.285.tar.gz (69.4 kB view details)

Uploaded Source

Built Distribution

yagmail-0.15.285-py2.py3-none-any.whl (17.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file yagmail-0.15.285.tar.gz.

File metadata

  • Download URL: yagmail-0.15.285.tar.gz
  • Upload date:
  • Size: 69.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for yagmail-0.15.285.tar.gz
Algorithm Hash digest
SHA256 e7002f0303681237c4389e7c4c8ae8dd0432abd579758f4887fa967b6eebe7ac
MD5 207bc01a0d4274b500e9fdd507991ebb
BLAKE2b-256 9039b66c3fb24474e7af9ced489bac8d6adf7c06b6878f6d6c24840f2b55325a

See more details on using hashes here.

Provenance

File details

Details for the file yagmail-0.15.285-py2.py3-none-any.whl.

File metadata

  • Download URL: yagmail-0.15.285-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for yagmail-0.15.285-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e3fb09e698cbb6e67e9f894f9a0b3e3f11c4d5623fcd41dd04b05c9e9ddb3956
MD5 3440b2f5fca1ab0a007060d1174abdc0
BLAKE2b-256 007f562e1f926a4bbff35e80a5903604706cba31b657005407240b82b47e6668

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page