Send email which scores 10/10 at mail-tester.com
Project description
mailer
Setup DNS and install:
pip install mailer-otphero
and then send email using SMTP which scores 10/10 at mail-tester.com like this
from mailer_otphero import Mailer
m = Mailer(host='smtp.google.com', port=465,
user='your@email.com', password='secret')
m.send(subject='Ping?', from_='your@email.com',
to='other@email.com', content='Hello, world')
How to setup DNS
Add these records to your DNS to make Spamassassin, Google and others happy:
_dmarc.YOURDOMAIN with value like v=DMARC1; p=none (or more strict - TODO: link )
mail._domainkey.YOURDOMAIN with your DKIM value
@ TXT record with your SPF value
Obviously your domain must have MX records.
NB: YOURDOMAIN is one from which you're trying to send eg email.com in the example above.
Release new version
python setup.py sdist && \
twine upload dist/*
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
mailer_otphero-0.0.2.tar.gz
(3.0 kB
view details)
File details
Details for the file mailer_otphero-0.0.2.tar.gz.
File metadata
- Download URL: mailer_otphero-0.0.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82caae8d161eec3089bc8699820807e1666a2bba80ea34accddc1a508ab81069
|
|
| MD5 |
d639c4bfb6967a682897c71c353796a2
|
|
| BLAKE2b-256 |
e4f7b1edb9d7ad7b0b803b5860e9b3b52ae1530d5afdb57672ca4126a95500bd
|