How to send HTML emails with Python smtplib

The Python smtplib library is a built-in module that provides a straightforward way to send emails using SMTP: this post provides an hands-on example showing how to add HTML email notification to an existing scirpt, which generate a report from a JINJA2 template. The provided code supports every kind of SMTP connection - SMTP, SMTP with startTLS and SMTPS, and illustrates also the use of argparse to process command line option. The skills illustrated in this post are a must have bit for your DevSecOps pipelines. #pyhton #smtplib https://lnkd.in/eHAjj-s7

Marco Antonio Carcano keep up the good stuff, you're always on the brink!

To view or add a comment, sign in

Explore content categories