Skip to main content

Simple library to send emails

Reason this release was yanked:

pending bug with python 3.12

Project description

Rick-mailer - Library to send emails

Tests pypi license

rick_mailer is a standalone version of Django's email library implementation, with minor changes.

Installation

$ pip3 install rick-mailer

Usage

from rick_mailer import SMTPFactory, Mailer

cfg = {
    'smtp_host': '127.0.0.1',
    'smtp_port': 25,
    'smtp_username': 'relay@local',
    'smtp_password': 'securePassword',
    'smtp_use_tls': False,
    'smtp_use_ssl': False,    
}
conn = SMTPFactory(cfg)

mailer = Mailer(conn)
mailer.send_mail('some subject', 'message contents', 'noreply@localhost', ['user1@domain.tld', 'user2@domain.tld'])

Related tools

Check out MailHog, a mail testing tool for developers.

License

As rick_mailer is mostly Django code, it is licensed under Django license and copyright - see the included License file.

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

rick-mailer-1.1.0.tar.gz (23.0 kB view details)

Uploaded Source

File details

Details for the file rick-mailer-1.1.0.tar.gz.

File metadata

  • Download URL: rick-mailer-1.1.0.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for rick-mailer-1.1.0.tar.gz
Algorithm Hash digest
SHA256 1bde7691a48d8ed08dab30d8ac733d92907c4e349c339f31cb406155148ba71c
MD5 18b5e902a69327598afa5c6027792eaa
BLAKE2b-256 4c842bf1f98a2cc3fc62c34be977da0e696f7badba95e2690b7bc3e7bf03d43c

See more details on using hashes here.

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