Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

hectane/python-hectane

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyhectane

Build Status Coverage Status License PyPI Version PyPI Downloads

A Python module for sending emails with Hectane.

Installation

Installing pyhectane is as simple as:

pip install pyhectane

Usage

Accessing the Hectane API with pyhectane centers around the Connection object. The example below demonstrates the process of creating an instance and using it to send a simple email:

import pyhectane

c = pyhectane.Connection()

c.send(
    from_='me@me.com',
    to=['you@you.com'],
    subject="Email Subject",
    text="Email body.",
    attachments=[
        'somefile.zip',
        'otherfile.tar.gz',
    ],
)

Django Backend

For projects using the Django framework, an email backend for Hectane is available. To use the backend, add the following line to settings.py:

EMAIL_BACKEND = 'pyhectane.django.HectaneBackend'

The following settings are also recognized:

  • HECTANE_HOST
  • HECTANE_PORT
  • HECTANE_TLS
  • HECTANE_USERNAME
  • HECTANE_PASSWORD

About

Python module for sending emails with Hectane

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.