Skip to content

python/webhook-mailer

A webhook to send every CPython commit to python-checkins mailing list. It's based on python/the-knights-who-say-ni written by Brett Cannon.

Requirements

  • CPython 3.7
  • aiohttp
  • aiosmtplib

See requirements for details.

Configuration

You can use following environment variables to configure the mailer webhook:

  • SENDER_EMAIL: This is required.
  • RECIPIENT_EMAIL: This is required.
  • SMTP_HOSTNAME: This is optional. Defaults to 'localhost'.
  • SMTP_PORT: This is optional. Defaults to 1025.
  • SMTP_USERNAME: This is optional.
  • SMTP_PASSWORD: This is optional.
  • PORT: This is optional. Defaults to 8585.

Usage

$ SENDER_EMAIL=sender@example.com RECIPIENT_EMAIL=recipient@example.com SMTP_USERNAME=spam SMTP_PASSWORD=eggs python3 mailer.py

Development

You can use aiosmtpd as an SMTP server during development:

$ python -m aiosmtpd -nd -l localhost:1025

Testing

Testing requires tox to be installed, then is as simple as running

$ tox

To run the linter, reformatter, and tests in one shot.

About

GitHub Webhooks -> Email

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy