Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(0)  |  Derive(2)  |  Import(2)
Base class for email backend implementations.

Subclasses must at least overwrite :meth:`send_messages`.

src/f/l/Flask-Email-1.4.4/flask_email/backends/rest/__init__.py   Flask-Email(Download)
"""
REST email backend class via requests.
"""
from flask.ext.email.backends.base import BaseMail
from flask.ext.email.message import sanitize_address
class Mail(BaseMail):
    def init_app(self, app, endpoint=None, **kwargs):
        if endpoint is None:
            raise Exception('API endpoint required')
        else:

src/f/l/Flask-Email-1.4.4/tests/__init__.py   Flask-Email(Download)
from flask import Flask, current_app as app
import flask.ext.email.backends.locmem as mail
from flask.ext.email.backends.base import BaseMail
from flask.ext.email.backends.console import Mail as ConsoleMail
from flask.ext.email.backends.smtp import Mail as SMTPMail
class CustomMail(BaseMail):
    def __init__(self, *args, **kwargs):
        super(CustomMail, self).__init__(*args, **kwargs)
        self.test_outbox = []