This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Simple Python SMTP relay replacement for sendmail with SSL authentication

Project Description
ksmtp
=====

**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
Release History

Release History

This version
History Node

0.2.10

History Node

0.2.9

History Node

0.2.8

History Node

0.2.7

History Node

0.2.6

History Node

0.2.4

History Node

0.2.3

History Node

0.2.2

History Node

0.2.1

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ksmtp-0.2.10.tar.gz (4.5 kB) Copy SHA256 Checksum SHA256 Source Dec 20, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting