Skip to content

Instantly share code, notes, and snippets.

View 1nk1's full-sized avatar
🌶️
...code -> chaque seconde tu me rends heureux

Andrii Peretiatko 1nk1

🌶️
...code -> chaque seconde tu me rends heureux
  • Montenegro, Podgorica
  • 22:16 (UTC +03:00)
View GitHub Profile
@haccks
haccks / python_mail_sender.md
Last active December 23, 2023 13:05
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