Gmailpy
A simple API wrapper for sending emails with Gmail
Getting Started
Install via pip (recommended)
pip install gmailpy
Install from source
pip install git+https://github.com/iDutchy/gmailpy
Getting Started
First you need to create your client:
import gmailpy
client = gmailpy.Client("john.doe@gmail.com", "P@$$w0rd")
Usage
await client.send(receiver, content, subject=None, bcc=None, attachment_bytes=None, attachment_name=None)
- Parameters:
reveiver (string): The receivers email address
content (string): The content of the email
subject (string): The email subject. Defaults to “No subject”
bcc (list): A list of other email addresses you want to send the mail to as BCC. Defaults to None
attachment_bytes (byte array): Attach anything to the email. This has to be a byte array! When providing this, the attachment_bytes argument becomes required! Defaults to None
attachment_name (string): The full name of the attachment. This has to contain the file extension too! e.g “dog.png”. This is required when providing attachment_bytes. Defaults to None
Metadata
Release files for gmailpy 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gmailpy-1.0.tar.gz | 2.5 kB | Details |
Release files / gmailpy-1.0.tar.gz
| Download URL | gmailpy-1.0.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2e28324e234600b63cfdbe3b79f9d3142dd616f34fa0a40db8887a0be65db43
|
|
BLAKE2b-256 checksum How to use checksums |
333aab0c7d8b528c6330472a3a7b9c23ffe400abab313a28cd5329ca309ac315
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.1 CPython/3.7.3
|