Automating & delivering reports

Email delivery

smtplib, Outlook and the Graph API — attachments, HTML bodies and recipient lists.

Emailing a report: build the message with an HTML summary and the workbook attached, send it through SMTP, Outlook or the Graph API, to a recipient list.Emailing a report: build the message with an HTML summary and the workbook attached, send it through SMTP, Outlook or the Graph API, to a recipient list.an attachment, a summary, and the right peoplereport.xlsxattachedright MIME typeEmailMessageHTML summaryplain-text fallbackSendsmtplib · OutlookGraph API

Start with the full guides

The long-form treatment of email delivery, with the reasoning the shorter pages assume.

Step-by-step how-tos

One task each, with code you can copy, run and adapt.

Follow it through a track

Prefer an ordered route? These tracks cover email delivery along the way, in the order that builds on itself.

Related topics

Subjects that keep turning up on the same pages as this one, most overlap first.

Email delivery is part of Automating & delivering reports.