.. Flask-Postmark documentation master file, created by sphinx-quickstart on Mon May 15 14:27:50 2017. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to Flask-Postmark's documentation! ========================================== This is a simple integration with `Postmark `_ for Flask applications. To send an email in your Flask application: .. code-block:: python from flask import Flask from flask_postmark import Postmark app = Flask(__name__) app.config["POSTMARK_SERVER_TOKEN"] = "" postmark = Postmark(app) @app.route("/send", methods=["POST"]) def send(): postmark.send( From="sender@example.com", To="receiver@example.com", Subject="Postmark test", HtmlBody=""" Hello dear Postmark user. """, ) return b"OK" .. toctree:: :maxdepth: 2 changelog Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search`