Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stranger6667/flask-postmark
Postmark Flask extension
https://github.com/stranger6667/flask-postmark
email flask postmark
Last synced: 19 days ago
JSON representation
Postmark Flask extension
- Host: GitHub
- URL: https://github.com/stranger6667/flask-postmark
- Owner: Stranger6667
- License: mit
- Created: 2017-05-02T19:58:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-01T15:34:15.000Z (about 4 years ago)
- Last Synced: 2024-10-09T08:49:36.010Z (29 days ago)
- Topics: email, flask, postmark
- Language: Python
- Homepage:
- Size: 60.5 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Flask Postmark
==============|Build| |Coverage| |Version| |Python versions| |Docs| |License|
This is a simple integration with `Postmark `_ for Flask applications.
Installation
------------Installing is simple with pip::
$ pip install flask-postmark
Usage
-----To send an email in your Flask application:
.. code-block:: python
from flask import Flask
from flask_postmark import Postmarkapp = Flask(__name__)
app.config["POSTMARK_SERVER_TOKEN"] = ""postmark = Postmark(app)
@app.route("/send", methods=["POST"])
def send():
postmark.send(
From="[email protected]",
To="[email protected]",
Subject="Postmark test",
HtmlBody="Hello dear Postmark user.",
)
return b"OK"Documentation
=============You can view the documentation online at:
- https://flask-postmark.readthedocs.io/en/latest/
Or you can look at the docs/ directory in the repository.
.. |Build| image:: https://github.com/Stranger6667/flask-postmark/workflows/build/badge.svg
:target: https://github.com/Stranger6667/flask-postmark/actions
.. |Coverage| image:: https://codecov.io/github/Stranger6667/flask-postmark/coverage.svg?branch=master
:target: https://codecov.io/github/Stranger6667/flask-postmark?branch=master
.. |Version| image:: https://img.shields.io/pypi/v/flask-postmark.svg
:target: https://pypi.org/project/flask-postmark/
.. |Python versions| image:: https://img.shields.io/pypi/pyversions/flask-postmark.svg
:target: https://pypi.org/project/flask-postmark/
.. |Docs| image:: https://readthedocs.org/projects/flask-postmark/badge/?version=stable
:target: https://flask-postmark.readthedocs.io/en/stable/
:alt: Documentation Status
.. |License| image:: https://img.shields.io/pypi/l/flask-postmark.svg
:target: https://opensource.org/licenses/MIT