A simple Python script to send styled HTML emails with an attached PDF via Gmail's SMTP server.
- 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
- Replace the
sender_emailandreceiver_emailvariables with your own. - Make sure the path to your PDF file (
lorem_Ipsum.pdf) is correct. - Add your Gmail App Password.
- Place your PDF at the correct path (My_Resume.pdf).
- Run the script in Google Colab or locally with Python 3.
β οΈ You must use an App Password for Gmail β not your regular password.
send_email_with_html_template.pyβ the main scriptREADME.mdβ this file
Created by Had_R β 2025


