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.13.237.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yagmail-0.13.237-py2.py3-none-any.whl (16.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: yagmail-0.13.237.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for yagmail-0.13.237.tar.gz
Algorithm Hash digest
SHA256 4fa8d5b606e0dca68829cd8bcb79f7b5e8361259f65aab5b3fd7b330c4958029
MD5 06f6917c093148ae774e26b5767ded54
BLAKE2b-256 75ac1e40f6711bb80a71b898927acdbef8e944445f52d13fb90d80f54b83a7a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yagmail-0.13.237-py2.py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for yagmail-0.13.237-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dc18e30fd8c6e37af2cf4b6c887dcbd5c99311c17b7c1ca6061b37ba04bb56a0
MD5 a87fa27489fee000aa2cfcb0e1396245
BLAKE2b-256 f9b26f40341978df431c18657e05adf0c205d555fbf6c532e54e843ebe5cdc8b

See more details on using hashes here.

Supported by

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