Skip to main content

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+

Getting Started

First you need to create your client:

import gmailpy

client = gmailpy.Client("", "P@$$w0rd")


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

This version


Download files

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

Source Distribution

gmailpy-1.0.tar.gz (2.5 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page