Skip to content

Lightweight Python project to send styled HTML emails with PDF attachments using Gmail SMTP. Includes inline CSS, secure authentication, and simple setup.

Notifications You must be signed in to change notification settings

MySpecialProject1/email-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“§ Python Email Automation

A simple Python script to send styled HTML emails with an attached PDF via Gmail's SMTP server.

✨ Features

  • Real-time weather from Open-Meteo API
  • Secure email sending over SSL (smtplib, ssl)
  • Rich HTML email layout with inline CSS
  • PDF file attachment
  • Prompted input for Gmail App Password

πŸ”§ Usage

  1. Replace the sender_email and receiver_email variables with your own.
  2. Make sure the path to your PDF file (lorem_Ipsum.pdf) is correct.
  3. Add your Gmail App Password.
  4. Place your PDF at the correct path (My_Resume.pdf).
  5. Run the script in Google Colab or locally with Python 3.

⚠️ You must use an App Password for Gmail β€” not your regular password.

πŸ“ Files

  • send_email_with_html_template.py β€” the main script
  • README.md β€” this file

✨ Email Output Example

IMG1 IMG2 IMG3


Created by Had_R – 2025

About

Lightweight Python project to send styled HTML emails with PDF attachments using Gmail SMTP. Includes inline CSS, secure authentication, and simple setup.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages