Skip to content

Instantly share code, notes, and snippets.

View hunterhec's full-sized avatar

Hector Acevedo hunterhec

View GitHub Profile
@hunterhec
hunterhec / python_mail_sender.md
Created June 14, 2022 20:29 — forked from haccks/python_mail_sender.md
Send emails to multi recipients with multiple attachments using python

A simple script in python3.x to

  • Send text emails.
  • Send to multiple clients.
  • Send multiple attachments (including images, videos, audios and compressed files)

To send email from the local SMTP server (localhost) it is assumed that a mail transfer agent (MTA), like postfix, is already configured on your local system. If not the follow this gist for step by step setup.

To send email from the gmail server you need to allow access for less secure apps in your Google account