Skip to main content

Send email messages

Project description

Bote

Supported Python Versions Last commit

"Bote" is German for messenger or courier. The bote library currently just sends plain-text email from localhost or a remote SMTP server.

There are plenty of libraries for this. My reasons to write another one:

  • Modularity: I outsourced this code from my exoskeleton library.
  • Extensive testing (currently this is a beta version!)
  • Type-Hints in the code (PEP 484)
  • Good error messages
  • Enforce that any connection to a SMTP server - except localhost / 127.0.0.1 - is encrypted.
  • Automatically wrap messages to 80 characters.

How to use it

import bote

mail_settings = {
    'server': 'smtp.example.com',
    'server_port': 587,
    'encryption': 'starttls',
    'username': 'example',
    'passphrase': 'example',
    'recipient': 'foo@example.com',
    'sender': 'bar@example.com'}

mailer = bote.Mailer(mail_settings)

mailer.send_mail('Test bote', 'It worked!')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bote-0.9.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

bote-0.9.0-py3-none-any.whl (8.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page