Simple library to send emails
Project description
Rick-mailer - Library to send emails
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
Release history Release notifications | RSS feed
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.1.tar.gz
(23.1 kB
view details)
File details
Details for the file rick-mailer-1.1.1.tar.gz
.
File metadata
- Download URL: rick-mailer-1.1.1.tar.gz
- Upload date:
- Size: 23.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0835448320935c18fcd2d3c831145e405dd2968b92e7612f1376f71bddb6b34 |
|
MD5 | 6b72995de83954d72afb65352ba88e68 |
|
BLAKE2b-256 | 7b041f06d10363eed242fd01b39acf61a33d6d4c32b363fe077b522948c482f5 |