Skip to content

sa-zen/pyemailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyemailer

A simple Python project to send personalized HTML emails using Gmail's SMTP server.

Features

  • Loads HTML email template from index.html
  • Personalizes content using Python's string.Template
  • Sends email via Gmail

Usage

  1. Update the following fields in main.py:
    • email['to']
    • smtp.login('<your email address>', '<your password>')
  2. Run the script:
    python main.py

Requirements

  • Python 3.8+
  • Gmail account (with app password or "less secure apps" enabled)

Files

  • main.py — Main script
  • index.html — Email template
  • pyproject.toml and poetry.lock — Dependency management (Poetry)

Security Note

Never share your email password publicly. Use environment variables or app passwords for better

About

A simple Python project to send personalized HTML emails using Gmail's SMTP server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published