A simple API wrapper for sending emails with Gmail
Project description
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
Project details
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
File details
Details for the file gmailpy-1.0.tar.gz.
File metadata
- Download URL: gmailpy-1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2e28324e234600b63cfdbe3b79f9d3142dd616f34fa0a40db8887a0be65db43
|
|
| MD5 |
24cc2ab0411a24bdec804488648334fb
|
|
| BLAKE2b-256 |
333aab0c7d8b528c6330472a3a7b9c23ffe400abab313a28cd5329ca309ac315
|