Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ldmontibeller's full-sized avatar

Leonardo Drews Montibeller ldmontibeller

View GitHub Profile
@ldmontibeller
ldmontibeller / multiple_emails_with_individual_attachments.py
Last active November 21, 2017 11:26
Send multiple emails with individual attachments using Python 3
import sys
import smtplib
from email import encoders
from email.mime.base import MIMEBase
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from random import randint
from time import sleep
def main():