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/.
Metadata
Release files for yagmail 0.13.234
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| yagmail-0.13.234.tar.gz | 17.7 kB | Without provenance | Details for yagmail-0.13.234.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yagmail-0.13.234-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for yagmail-0.13.234-py2.py3-none-any.whl |
Total release size: 34.3 kB
Release files / yagmail-0.13.234.tar.gz
| Download URL | yagmail-0.13.234.tar.gz |
|---|---|
| Size | 17.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4a3a871f49210cf6f869e8259bf4433bc67f53b9cb865d69e98ff63a6291814
|
|
BLAKE2b-256 checksum How to use checksums |
b1c92966e3ec72bdced5708089a63e1cf29c6dc1e29d0f93815a629f7bf91dc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|
Release files / yagmail-0.13.234-py2.py3-none-any.whl
| Download URL | yagmail-0.13.234-py2.py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9fe1778422b8d6f86ce4aca7798198b9edb13495e7f39b55ef36d271d0969ffb
|
|
BLAKE2b-256 checksum How to use checksums |
b6e023309226c7952f7b0f5afd97944259c4cca2b229ebff8ad97878affd7f6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|
Security for yagmail 0.13.234
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.