All work

Entry 04 of 11

Work

Email Servers & Scripts

Automated email systems for alerts and campaigns

  • Python
  • smtplib
  • imaplib
Read the walkthrough
  1. Schedule the emails
  2. Send the queued messages
  3. Mark each message as sent

Overview

Send/receive pipelines, parsing inboxes, and scheduled jobs.

What it covers

  • Send/receive pipelines
  • Inbox parsing
  • Scheduled jobs
  • Alerts and campaigns

Queue your first email alert

  1. Create one queued alert with a recipient, message body and scheduled time, using your own inbox for the first run.
  2. Have a Python worker select due alerts and send each one through your SMTP provider with smtplib.
  3. Mark an alert as sent after the provider accepts it, then check the test inbox for delivery.