=====
**ksmtp** - Simple Python SMTP relay replacement for sendmail with SSL authentication
Useful for relaying all email through an account like Gmail, without the
messy configurations of Postfix / Sendmail.
Source
======
GitHub - https://github.com/oeey/ksmtp
PyPI
====
PyPI - https://pypi.python.org/pypi/ksmtp
pip install ksmtp
Usage
=====
1. pip install ksmtp
2. edit /etc/ksmtp.conf with your login credentials
3. (optional) create symlink to ksmtp to replace sendmail
```
ln -s `which ksmtp` /usr/sbin/sendmail
```
4. send test mail
```
ksmtp test@test.com
ksmtp test@test.com -s "some subject"
```
Code Usage
==========
Sample Python Code:
import ksmtp
ksmtp.send(to="test@test.com",
subject="subject",
body="some message")
Sample Config
=============
Warning: make sure to backup this configuraiton file! Python's pip will overwrite it on updates to this package.
/etc/ksmtp.conf:
```
[ksmtp]
## from email address
from = username@gmail.com
## user
user = username@gmail.com
## password
pass = password
## server
server = smtp.gmail.com
## port
port = 465
#port = 587
## secure
secure = ssl
#secure = tls
## default to email address (if none specified)
#to = user@domain.com
## default catch-all (always CC)
#catch-all = user@domain.com
## default subject
#subject = default test subject
```
Issues
======
Gmail:
If you get an "smtplib.SMTPAuthenticationError" and your credentials are
correct, you may need to "allow less secure apps access" to your account.
See https://support.google.com/accounts/answer/6010255
Metadata
Release files for ksmtp 0.2.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ksmtp-0.2.10.tar.gz | 4.5 kB | Without provenance | Details for ksmtp-0.2.10.tar.gz |
Release files / ksmtp-0.2.10.tar.gz
| Download URL | ksmtp-0.2.10.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c241cbc74fd58f6340adb25a5ae7fc83ec24c017679c14a2009106e8beb23b26
|
|
BLAKE2b-256 checksum How to use checksums |
a867ff14450f6ff70d8cdf2884b52917d4b1831c5dfdc3e2aca6e018572573f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for ksmtp 0.2.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.