EasyGmail: package for quickly sending emails via Gmail

engrmahabub
Mahabubur Rahman
Published on Feb, 11 2024 1 min read 0 comments
image

EasyGmail is a lightweight, minimalistic, and synchronous Python API designed for quick email sending via Gmail.
 

The current release is a beta release. By stable release 1.0, the following features are projected to be added:

  • Unit testing
  • Static Site Documentation
  • File Attachments
  • HTML Emails
  • Variadic Recipients

 

Install : 

pip install git+https://github.com/ayushgun/easygmail

 

Prerequisites

Before using EasyGmail, ensure you have an app password for Gmail. Do not use your regular account password.

Quick Start Example

 

from easygmail import Client, EmailBuilder

client = Client("<address>@gmail.com", "<app password>")

msg = EmailBuilder(
    receiver="<recipient>@domain.com", subject="<subject text>", body="<body text>"
).build()

client.send(msg)

Your .env file should contain:

EMAIL_ADDRESS="<address>@gmail.com"
PASSWORD="<app password>"

 

For details  https://github.com/ayushgun/easygmail

 

 

0 Comments